Why I use grid over flexbox for this common layout

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI8 min

About this video

Kevin Powell explains why flexbox column sizing can behave unpredictably for a common layout and shows his preferred grid-based solution, including how it responds at different screen sizes. It is aimed at developers who already use CSS.

What you’ll learn

  • Explain how flexbox calculates column sizes in a common layout
  • Build a responsive multi-column layout using CSS grid
  • Compare when grid is a better fit than flexbox for columns