I've been working on centering multiple elements for a while now. I was thrilled when I discovered the <center>
element, as it worked perfectly for my needs. However, I soon learned that it is deprecated in HTML5. Despite many suggestions to use CSS for text alignment, I need to center more than just text.
<div class="col-lg-1 col-mid-2 col-sm-3 col-xs-4">
<center>
<button type="button" class="btn btn-primary circle" data-toggle="button" aria-pressed="false" autocomplete="off">
<img src="assets/img/img.png">
</button>
<p>Some Text</p>
</center>
</div>
Despite recommendations to use:
margin:0px auto;
This doesn't achieve the same result as the <center>
element does.