Use this instead of media queries or container queries

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI22 min

About this video

The video shows how to build layouts that respond to the width of a child element using flexbox and grid patterns, as an alternative to media queries and container queries. It is aimed at people who already write CSS and want more control over responsive layout.

What you’ll learn

  • Build a layout that changes based on the width of a child element
  • Compare a flexbox and a grid version of the same responsive pattern
  • Reach for intrinsic layout patterns where media and container queries fall short