Selecting the preceeding sibling with CSS is so easy now!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateWeb DesignUI1 min

About this video

A one-sentence CSS tutorial showing how to select a preceding sibling element using the :has() selector.

What you’ll learn

  • Select a preceding sibling element using the :has() selector