How to use CSS :has and :not - Future CSS!

DesignCourse on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUIWeb Design12 min

About this video

A walkthrough of the newer CSS pseudo-classes :has and :not, covering browser support checks and examples of using them with HTML. It is aimed at people who already write HTML and CSS and want to learn these selectors.

What you’ll learn

  • Check browser support for :has and :not on Can I Use
  • Apply :has to style elements based on their children
  • Combine :not with :has to target more specific elements