Is it possible to style a bunch of images in CSS without defining anything in HTML, so that they appear in multiple rows aligned vertically with each row containing 5 or 6 images? The current code using .wrapper
displays the images endlessly in one row.
Check out this JSFiddle for reference
CSS
.wrapper {
display: flex;
align-items: center;
}
HTML
<div class="wrapper ">
<img src="http://placehold.it/150x160" alt="">
<img src="http://placehold.it/150x120" alt="">
<img src="http://placehold.it/150x200" alt="">
<img src="http://placehold.it/150x70" alt="">
<img src="http://placehold.it/150x170" alt="">
<img src="http://placehold.it/150x150" alt="">
<img src="http://placehold.it/150x250" alt="">
<img src="http://placehold.it/150x110" alt="">
<img src="http://placehold.it/150x210" alt="">
<img src="http://placehold.it/150x110" alt="">
<img src="http://placehold.it/150x210" alt="">
</div>