How do I make a flex box only increase in size if the parent increases in size, but not increase...

How do I make a flex box only increase in size if the parent increases in size, but not increase if the child box grows. I have 3 divs each inside one another , the parent div can grow and the 1st child div should grow with it, but the inner div should be able to grow, it should be limited to the first child's height
6 Replies
henry
henryOP2y ago
that is where I want to cut it off but , the box on the left grows too, so when that does , I want the one on the right to grow which it already does
henry
henryOP2y ago
henry
henryOP2y ago
this is wanted behavior if I set a max-height on this box, it won't increase in size even if its parent increases in size
Myndi
Myndi2y ago
I think a grid could do this much better.
13eck
13eck2y ago
Myndi is right, you use grid. Flexbox leans to the "ish is good enough" side of the equation whereas grid leans to the "do this, period" side of things.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server