How to take control of Flexbox

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI16 min

About this video

A walkthrough of how display flex, flex-shrink, flex-grow and defined sizes control how items lay out in a card component, built from a Dribbble hotel card design. It suits people who already know basic CSS and want firmer control over flexible layouts.

What you’ll learn

  • Explain what display flex does to child elements
  • Control item shrinking with flex-shrink
  • Distribute extra space between items with flex-grow