Subgrid & Container Queries change how we can create layouts

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI21 min

About this video

A CSS tutorial that builds a classic subgrid layout, then uses container queries to add subgrid to a featured card across breakpoints. It also shows how container queries can break subgrid when both are applied to the same element.

What you’ll learn

  • Align card rows and columns across a grid with subgrid
  • Change a featured card's layout with container queries
  • Spot when container queries break subgrid on the same element