I'm having an issue with aligning multiple images on my webpage. I want them to be left justified when the page is resized, while still keeping the div block centered. Currently, they are all being centered:
See below:
Here is the HTML and CSS code I am using:
<div class="widget-content" style="text-align:center;">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
<img class="medium_thumb_rounded" id="15" src="my-img-src.jpg">
</div>
CSS:
.widget-content {
padding: 12px 15px;
border-bottom: 1px solid #cdcdcd;
}
.medium_thumb_rounded {
border: 1px solid #B6BCBF;
/*float: left;*/
height: 80px;
width: 80px;
margin-right: 1px;
margin-bottom: 5px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
Can anyone spot what I might be doing wrong in my code?