Flexbox Basics: flex-grow, flex-shrink, flex-basis

Brad Hussey on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerWeb Development20 min

About this video

This lesson introduces the flex-grow, flex-shrink and flex-basis properties in CSS Flexbox, with a linked CodePen to try them. It suits people learning web layout for the first time.

What you’ll learn

  • Use flex-grow to share extra space between flex items
  • Use flex-shrink to control how items shrink when space is tight
  • Set a starting size for flex items with flex-basis