From W3C Wiki
< CSS‎ | Selectors
Revision as of 20:48, 26 September 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Pseudo-classes :root

The :root pseudo-class represents an element that is the root of the document. In HTML, this is always the HTML element.


selector:root{ properties }



   background-color: #ccc;


<p>This is a paragraph.</p>

Css3 selectors root.png

CSS defines the :root pseudo-class in :root pseudo-class.