I have this html...
<div class="img-panel">
<img src="src.png" alt="image" class="img">
<img src="src.png" alt="image" class="img">
<img src="src.png" alt="image" class="img img--high">
<!-- ... -->
</div>
... And this css...
.img-panel {
height: 60vh;
width: 95vw;
overflow-y: scroll;
overflow-x: hidden;
display: flex;
padding: 0 1vw;
justify-content: start;
flex-wrap: wrap;
align-content: start;
}
.img {
width: 18vw;
border-radius: 1vmin;
margin: 1vh 0.5vw;
height: 8vh;
border: 1px solid black;
}
.img--high {
height: 18vh;
}
I'd like to remove the gaps when wrapping and make the images flow to the bottom of each other so that instead of having this, I have something like this.
Is there a way to achieve that using just css?