Please refer above image, I tried to use flex but I can not get the result that I expected.
I’m working on tailwind css. I want to be the result like green cards in the image. Example to understand much appropriate.
Please refer above image, I tried to use flex but I can not get the result that I expected.
I’m working on tailwind css. I want to be the result like green cards in the image. Example to understand much appropriate.
2
Answers
You will need to use columns for this, in css when you use flex, flexbox, or grid there is no way to have different heights inside 1 row, but if you use seperate columns that are vertical, and set the parent of all columns to a flex element you will achieve the results.
assuming your number of cards is static I made a simple demo how you can achive that easily with css grid. Here is link DEMO
Code –