2 common CSS layout misconceptions

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI20 min

About this video

A Kevin Powell video that explains how flex: 1 works and compares Flexbox with CSS Grid, challenging the idea that Flexbox is inherently simpler. It is aimed at people who already write some CSS.

What you’ll learn

  • Explain how flex: 1 sets flex-grow, flex-shrink and flex-basis
  • Compare when Flexbox and CSS Grid suit a layout
  • Choose between Flexbox and Grid for a given layout problem