From Web Education Community Group
< CSS‎ | Selectors
Revision as of 18:58, 21 November 2011 by Rworth (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.