I am struggling to horizontally align three elements using the col-sm-4 function, but unfortunately, it's not working as expected. No matter what I try, the items remain aligned to the left and stacked vertically. The images are all of equal size.
Below is the code snippet:
<section class="container">
<div class="row">
<figure class="col-sm-4">
<p style="text-align: center">PLAY</p>
<img src="img/m1.jpg"/>
</figure>
<figure class="col-sm-4">
<p style="text-align: center">LEARN</p>
<img src="img/m2.jpg"/>
</figure>
<figure class="col-sm-4">
<p style="text-align: center">HELP</p>
<img src="img/m3jpg"/>
</figure>
</div>
</section>
And here is the CSS:
section .row img {
margin: 0 0 30px;
width: 100%;
border: 4px dotted #000;
clear: none;
}
The inability to get this alignment right has been puzzling me as I've reviewed other websites that employ a similar technique without any issues. Any guidance would be greatly appreciated. Thank you.