Write less code with these 5 CSS tips

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateWeb DesignUI16 min

About this video

A CSS tutorial covering practical selector techniques, including selecting ranges of content, targeting elements by context, and using nesting to style elements depending on where they sit. It is aimed at people who already write some CSS and want to write less of it.

What you’ll learn

  • Select ranges of content and sibling elements with CSS selectors
  • Use :not() and attribute selectors to avoid overly generic rules
  • Apply nesting to style elements according to their context