Container queries are possible!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI18 min

About this video

A CSS tutorial that shows how to combine flex-wrap, flex-basis and flex-grow to make layouts respond to their container's width without media queries, based on Heydon Pickering's Holy Albatross technique.

What you’ll learn

  • Use flex-wrap, flex-basis and flex-grow to build a responsive layout
  • Replicate container-query-style behaviour without media queries
  • Apply negative flex-basis to control when items wrap