Flex item sizing
Sets the initial main size of a flex item before free space is distributed according to flex factors.
What it does: A flex-shrink value of 0 locks the item's minimum baseline size to its flex-basis value. flex-grow: 1 is the standard mechanism to distribute leftover space equally among expanding elements. flex-grow accepts unitless numbers as factors, never length units like px. Higher values mean a larger share of the remaining available space will be allocated. flex-basis applies to the main axis. If flex-direction is column, the main axis is vertical, so it sets the height. Length dimensions in CSS require explicitly defined units to be properly computed by rendering engines. Growth parameters are abstract mathematical scalar proportions rather than exact physical constraints.
Common mistakes: The flex-basis property must be placed inside a CSS rule block, not floating outside. Numerical values for flex-basis require a unit like px, %, or the keyword auto.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
flex-basisFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →