Skip to content

Glossary: CSS Layout and Responsive Design

:has()

A pseudo-class that matches an element containing something that matches its argument, letting a parent be styled by its contents, like a card holding a sold-out label.

Where the book teaches it

Related terms

:is() / :where()