A tutorial on the CSS :has() pseudo-class, covering how it works as a parent selector and how it can select elements based on their siblings. It shows several practical examples for people who already write CSS.
What you’ll learn
✓Select parent elements based on their children with :has()
✓Style an element based on a specific sibling using :has()