I’m trying to create a grid of links (img + text) that will be 3 columns and multiple rows. The problem is that my images are not the same height, so I’m getting a result like this:enter image description here
I’m trying to find what CSS Grid property I need to get a result like this.enter image description here
I tried to just do 3 divs (for each column) with multiple links inside them, but the order isn’t correct when responsive.
Can you guys help? Thanks a lot.
3
Answers
overflow:hiddin,
display:inline-block,
background:cover,
I guess, you can put
display: flex
to parent divAnd then in each column add number of images you want to render
Now you don’t have to worry about the different image heights.
Try this: