Hacker News new | ask | show | jobs
by mjrpes 4124 days ago
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

1 comments

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))