Home

Search IconIcon to open search

Pseudo-classes

# :has()

1
2
3
4
/* Selects an h1 heading with a
paragraph element that immediately follows
the h1 and applies the style to h1 */
h1:has(+ p) { margin-bottom: 0; }