The one CSS combinator I use in every project

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI15 min

About this video

Kevin Powell explains the CSS adjacent sibling combinator, the selector he uses most often, with a basic example, the lobotomized owl pattern for spacing, and how it applies to CMS-generated content. It suits people who already write CSS.

What you’ll learn

  • Target an element that directly follows another with the adjacent sibling combinator
  • Apply the lobotomized owl selector to space out repeated elements
  • Style CMS-generated content that lacks its own classes