I need a solution to display multiple images in a box, all set to the same height and width of 154px x 125px. While this can be achieved, the issue arises when there isn't enough space for the final image, leaving blank areas. Is there a way to make the images automatically adjust to the full width of the box regardless of screen size?
.tab-content {
background-color: #0c1011;
padding: 0px 0px;
margin-bottom: 0px;
display: block;
overflow: hidden;
}
.tab-pane img {
display: inline-block;
float: left;
}
.tab-pane a {
display: block;
}
.img-responsive {
display: block;
height: auto;
max-width: 100%;
}
<div class="tab-content clearfix">
<div class="tab-pane active" id="1a">
<a href="#">
<img src="http://lorempixel.com/154/125/" class="img-responsive">
</a>
...
</div>
</div>
https://i.sstatic.net/yfOAT.png
Here is the codepen: