Learn flex-grow
, flex-shrink
, and flex-basis
to control how items behave.
Items size based on content, don't grow, can shrink
Middle item should grow to fill space
First item should maintain its width
All items should start at 200px width
All items should be equal width
Apply flex properties to see how items grow, shrink, and size themselves!
flex-grow: 1;
- Item can growflex-shrink: 0;
- Item won't shrinkflex-basis: 200px;
- Starting widthflex: 1;
- Shorthand for 1 1 0%