Prev | Current Page 131 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

As such, a selector like a:link:visited should never match
any element.
Compatibility
SPEC
CSS1
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7+
FULL FULL FULL FULL
Selector Reference
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 Full Full Full Full Full Full Full Buggy Buggy
Neither Internet Explorer 5.5 nor 6 supports the chaining of pseudo-classes; only
the last pseudo-class is honored in these browsers.
The Ultimate CSS Reference 84
:visited
:visited {
declaration block
}
This pseudo-class matches link
elements that are determined to have
been visited.
In CSS1, this pseudo-class applied only
to a elements that had an href attribute
(that is, a hypertext link). In CSS2, the
document language can define elements
as hyperlink anchors. It??™s up to the user
agent to decide which links it considers to be visited and unvisited.
Example
This rule will set the font color of all
visited HTML links to #cccccc:
a:visited {
color: #cccccc;
}
The two pseudo-classes :link and :visited are mutually exclusive: a link is either
visited or unvisited.


Pages:
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143