Select all siblings of an element using :has()

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

ShortIntermediateUI1 min

About this video

A short CSS tutorial showing how to select all siblings of an element using the :has() selector.

What you’ll learn

  • Select all siblings of an element with :has()