kasir-barati
KPCKevin Powell - Community
•Created by kasir-barati on 10/20/2024 in #front-end
adjusting height automatically in a grid system according to the wide images and not taller ones
So here is the issue, I have a grid container called with the class
gallery__group
applied to it. It has two column. And I am putting images inside a figure element and right now their width is 100% but height-wise each row is as tall as the taller image in that row. I do not like this, I want it to pick the height of shorter ones. How can I do it? Here is a simple React app in codesandbox: https://codesandbox.io/p/sandbox/galler-react-ytgklf3 replies