How to get CSS grid items to fill space vertically?
I have many blocks of various height in a grid layout, but between different rows the next row only starts at where the tallest block in the previous row ends. Is there any way to position the items unevenly so the item below a shorter item will take up that empty space? If it's impossible in grid then I don't mind other methods, I'm an absolute beginner so I'm not too familiar with anything else. Here's what I have right now... .list{ display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; width: 72%; margin-right: auto; margin-left: auto; margin-bottom:10px; } .name { font-weig
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.