Here is my jsFiddle for full code example.
I couldn't figure out how to upload my placeholder.png
image. Nevertheless, notice that there are (supposed to be) 6 images under the subheading?
When I run this locally (where my browser can actually resolve placeholder.png
) the images are all smushed together. I can force them to be separated by hackishly adding
's but that seems like the wrong way to accomplish padding:
<div class="row">
<div class="col-md-2 text-center">
<img src="placeholder.png"/>
<img src="placeholder.png"/>
<img src="placeholder.png"/>
<img src="placeholder.png"/>
<img src="placeholder.png"/>
<img src="placeholder.png"/>
</div>
</div>
Any ideas how I can get these to be padded such that all 6 images are centered and yet still take up most of the page width?
Also, just to throw a curve ball into the equation, when this runs in production, the server decides how many images to send back. It won't always be 6 images: it will always be between 3 and 7 images (so: 3, 4, 5, 6 ot 7 images). I need this to be smart enough to center the images and make them take up most of the page width regardless of how many images are returned by the server. Any ideas?