Given the following HTML
<div class="container-fluid body-content">
<div class="banner row images">
<div>
<img src="http://www.3tonus.com/2014/images/gallery/tower/thumbs/finalfull.jpg" />
</div>
<div>
<img src="http://www.3tonus.com/2014/images/gallery/tower/thumbs/finalfull.jpg" />
</div>
<div>
<img src="http://www.3tonus.com/2014/images/gallery/tower/thumbs/finalfull.jpg" />
</div>
<div>
<img src="http://www.3tonus.com/2014/images/gallery/tower/thumbs/finalfull.jpg" />
</div>
<div>
<img src="http://www.3tonus.com/2014/images/gallery/tower/thumbs/finalfull.jpg" />
</div>
</div>
and css
div.banner.row.images {
display: flex;
flex-wrap: wrap;
}
div.banner.row.images div {
flex: 1 1 auto;
}
How do I get the fifth image to align right, so that all the space taken up is in the middle of the flex box.
I have tried space-between
, but that creates a left margin on the far left image, and a right border on the far right image.
I want the first image left aligned, the last image right aligned, and space in between, or just let the images grow to fill the space.