Getting started with CSS nesting

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI27 min

About this video

Explains how native CSS nesting works, including the ampersand selector, nested media queries, and the differences from Sass nesting. It also covers specificity, declaration order and browser support.

What you’ll learn

  • Write nested CSS selectors using the ampersand
  • Use nested media queries and compound selectors
  • Avoid specificity and declaration order pitfalls with nesting