Container Queries are going to change how we make layouts

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI24 min

About this video

A CSS tutorial explaining container queries as an alternative to viewport-based media queries for component layouts. It walks through the basics, range syntax, named containers, container-type size, and use with flexbox and grid.

What you’ll learn

  • Write container queries that respond to a component's own size
  • Use named containers and the range syntax in CSS
  • Combine container queries with flexbox and grid layouts