CSS Container Queries Tutorial - #FutureCSS

DesignCourse on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI18 min

About this video

A tutorial on CSS container queries, which set styles based on an element's own width rather than the viewport, allowing more flexible components. It notes that the feature requires a browser flag in a pre-release version of Chrome.

What you’ll learn

  • Apply container queries to size a component by its own width
  • Write container-based styles in place of viewport media queries
  • Enable the container queries flag in a pre-release Chrome build