I've a page of content with 4 div's side by side.
At the moment the divs are sticking to the left.
I've tried to wrap the div's in a container and text-align that center, but it won't work.
here is the code i'm using i've remove some image URL's etc
#downloads {
text-align: center!important;
}
.dl-buttons {
text-align: center!important;
}
- I know this is duplicate but was testing .windows a {
width: 190px;
height: 190px;
display: inline-block;
float: left;
}
<div id="downloads">
<div class="row dl-buttons">
<div class="col-3 col-6-sx windows">
<a class="bt1" href="#"></a>
</div>
<div class="col-3 col-6-sx mac">
<a class="bt1" href="#"></a>
</div>
<div class="col-3 col-6-sx android">
<a class="bt1" href="#"></a>
</div>
<div class="col-3 col-6-sx ios">
<a class="bt1" href="#"></a>
</div>
</div>
</div>
- all other classes / mac / android / ios are the same