CSS3 In-Depth CSS3 In-Depth

Negation and empty pseudo-classes

Estelle Weyl
Estelle Weyl
HTML5 & CSS3 in the Real World

The negation pseudo-class can add exclusion to a CSS rule. The empty pseudo-class, used more rarely, will match any element that doesn’t contain any content or whose content is only an HTML comment.

Get Unlimited Access Now