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.
In more detail
Growing and shrinking both begin from this size. The flex shorthand sets grow, shrink and basis together, such as flex: 1 1 200px.
Related terms
- flex-grow — The flexbox property that says how much of the leftover space an item takes, relative to the other items' grow values.
- 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.
Taught in
- Deep Flexbox: Flex Grow, Shrink, Basis And Alignment Physics — Frontend Architecture & Web Platform