Just asking out of curiosity to see if anyone knows a CSS only method to set all flex-box children to the height of the tallest/shortest flex-box child when the flex-box parent is set to wrap. The default seems to be that flex-box children al become the same height of the ROW thy wrap into, but what if the intended look is that all children are the height of the tallest element in the entire flex-box set?
No there is no natural method as each row in Flexbox is treated individually and
has no relationship with anything above.
I’m not saying it’s impossible but just can’t think of a way that it could be done
I didn’t think so either, but. why not tap the experts for confirmation
I can’t think of a way, only to have a fixed height/min-height which is something I don’t like to do plus it’s not the same thing as:-
Which could be fudged with a “magic number” which isn’t ideal.
I wonder if it’s possible with grid.
I don’t know grid as well as flex, it’s a while since I looked at it and only got so far learning about it.
I don’t think grid can do this either but my grid css is still at basic level.
You’d probably need to script it.
Or for the most contrived example ever :slight_smile (without fixing the height):
( Warning do not use -just for fun )
I had actually written a script myself ( i will post it later) :). I just always wonder if i missed an all CSS solution.
i think min-flex/max flex, or something like it, would have been a nice feature.