Prev | Current Page 126 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Heading


The selector above matches this paragraph.


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
Full None None None Full Full Full Buggy None None
In Internet Explorer 7, this selector fails if a comment appears between the
combinator and the simple selector that follows it.
If one of the simple selectors is missing, Internet Explorer 7 acts as if there were a
universal selector in its place, instead of failing as it should.
Pseudo-classes
A pseudo-class is similar to a class in HTML, but it??™s not specified explicitly in the
markup. Some pseudo-classes are dynamic??”they??™re applied as a result of user
interaction with the document.
81 Selector Reference
A pseudo-class starts with a colon (:). No whitespace may appear between a type
selector or universal selector and the colon, nor can whitespace appear after the
colon.
CSS1 introduced the :link (p. 83), :visited (p. 84), and :active (p. 85)
pseudo-classes, but only for the HTML a element.


Pages:
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138