I'm currently working on creating a CSS grid for a product display. My goal is to have rows with equal heights, but each row should adjust its height based on the tallest column within that specific row. Right now I have all rows set to be the same height using the following CSS:
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 1fr;
grid-column-gap: 0;
grid-row-gap: 0;
display: grid;
However, I am struggling to figure out how to make each row dynamically adjust its height based on the tallest column in that row. Any suggestions or tips on how to achieve this would be greatly appreciated.
I hope that explanation makes sense!