Prev | Current Page 150 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
None None None None None None None None None None
This pseudo-class is currently supported only by the Konqueror web browser.12
Selector Reference
101 Selector Reference
:only-of-type
:only-of-type {
declaration block
}
This pseudo-class matches an element
that??™s the only child element of its type.
Compatibility
:root
:root {
declaration block
}
This pseudo-class matches an element
that??™s the root element of the document.
In HTML documents, this selector
matches the html element.
SPEC
CSS3
BROWSER SUPPORT
Op9.2 Saf1.3+ FF1+ IE7
NONE FULL FULL NONE
Example
In an HTML document, this selector will
match the html element:
:root {
?‹® declarations
}
12 http://www.konqueror.org/
The Ultimate CSS Reference 102
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
None Full Full Full Full Full Full None None None
This pseudo-class is currently only supported by Firefox and Safari.
:empty
:empty {
declaration block
}
This pseudo-class matches elements
that have no children.


Pages:
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162