Skip to content

MediumConceptModern CSS

What does the :has() selector enable?

What a good answer covers

A relational selector that matches an element based on its descendants or following siblings, such as styling a card that contains an image, without JavaScript.

More on Modern CSS

Flashcards for this topic