CSS :has() Selector - Beyond Parent Selection for Advanced Element Targeting

CSS :has() Selector - Beyond Parent Selection for Advanced Element Targeting

Kevin Powell via YouTube Direct link

00:00 - Introduction

1 of 7

1 of 7

00:00 - Introduction

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

CSS :has() Selector - Beyond Parent Selection for Advanced Element Targeting

Automatically move to the next video in the Classroom when playback concludes

  1. 1 00:00 - Introduction
  2. 2 00:30 - basic usage
  3. 3 00:55 - select elements that come after
  4. 4 01:45 - select elements that come before another element
  5. 5 04:40 - select all the siblings of a given element
  6. 6 07:10 - counting how many children an element has
  7. 7 08:18 - bonus tip: nth-child of s along with :has

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.