ExampleSpecify a background color for empty p elements:
Try it yourself » |
The :empty selector matches every element that has no children (including text nodes).
The :root selector is supported in all major browsers, except Internet Explorer.