News for hackers. Stuff that matters.
Re:Flexbox in 5 minutes by mjrpes on Wednesday March 04, 2015 @02:36AM (#9143137)
I'm still confused with flex-grow (step 28). When I set the value of an item to 2 while the other items remain at 1, it increase in width a little bit but not nearly twice as much (relative to the others). What does 2 actual do here?

Chrome 41.0.2272.76 m

Re:Flexbox in 5 minutes by Excavator on Wednesday March 04, 2015 @01:07PM (#9146112)
As I recall it, the available space is divided by the sum.

So in this case the width for "2" would be: 2 * (available_width / (1 * other_items + 2))