CSS Has Not Combo

Adam Argyle November 30, 2022
Source
use :has() for when an element doesn't have some other element as a child, like a card without a heading 🤓 .card { ... & : not(:has(h3 )) { /* .card's without h3's */ } } Codepen

Discussion in the ATmosphere

Loading comments...