Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1312

how to arrange containers of different sizes in div? [duplicate]

$
0
0

I am trying to arrange containers having fixed width but different heights inside a div. I tried using flexbox and the result is as follows

enter image description here

The height of any particular row is governed by item having the maximum height in that row. I need the items in the corresponding row to take up the extra space left by the items in the previous row, as can be seen in the following image

enter image description here

How can we do this?


Viewing all articles
Browse latest Browse all 1312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>