HTML and CSS Reference
In-Depth Information
Name
:root
Applies to:
The root element
Description:
This matches the document's root element, which in HTML and XHTML is always the html
element. In XML formats, the root element can have any name; thus, a generic root-element
selector is needed.
Examples:
:root {font: medium serif;}
:root > * {margin: 1.5em 0;}
Search WWH ::




Custom Search