flex-grow
The flexbox property that says how much of the leftover space an item takes, relative to the other items' grow values.
In more detail
If a container has 300px spare and two items have flex-grow 1 and 2, they gain 100px and 200px. An item with flex-grow 0 keeps its base size.
Related terms
- flex-shrink — The flexbox property that says how much an item gives up when items are too big for the container, weighted by each item's base size.
- flex-basis — The flexbox property that sets an item's starting size along the main axis, before any spare space is shared out or taken away.
- Flexbox — A CSS layout mode that arranges a container's children in a row or column and distributes space between them.
Taught in
- Deep Flexbox: Flex Grow, Shrink, Basis And Alignment Physics — Frontend Architecture & Web Platform