Creates 4x4 grid:
.grid div img {
width: 100%;
object-fit: contain;
}
.grid {
width: 90%;
margin: auto auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-row-start: auto;
grid-gap:.7em;
}
HTML & CSS Code: https://codepen.io/ikenna-porter/pen/PKpyJB/?editors=1100
Is it possible to get rid of the extra white space between each row (for example: the large gap between the image with the birds and the image with the US flag/missiles). I would like to have each row automatically fill in spaces left behind from the previous row, so that each row of images aren't perfectly aligned.
Thank you!