Flex Item Properties
Control how individual flex items grow, shrink, and size themselves.
flex-grow
Determines how items grow to fill extra space:
Different Grow Values
The middle box gets twice as much extra space!
flex-shrink
Controls how items shrink when space is limited:
flex-basis
Sets the initial size before growing/shrinking:
The flex Shorthand
flex: grow shrink basis combines all three:
Common flex Values
Interactive Playground
Practical: Equal Columns
Practical: Sidebar Layout
order Property
Change visual order without changing HTML:
Exercise: Make Item Grow
Make the middle item grow to fill available space:
Up next · Lesson 20 of 27
Introduction to Grid
2 min read
19 of 27 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

