Prev | Current Page 152 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

If this selector is used within
an external style sheet, it works as designed.
SPEC
CSS3
BROWSER SUPPORT
Op9.2 Saf1.3+ FF1+ IE7
NONE BUGGY FULL NONE
:target
:target {
declaration block
}
Example
For example, if the URI was
http://www.example.com/index.html#section2,
the following selector would match the
element that had an id attribute of
"section2":
:target {
?‹® declarations
}
This pseudo-class matches an element
that??™s the target of a fragment identifier
in the document??™s URI. The fragment
identifier in a URI comprises a #
character followed by an identifier name
that matches the value of an id attribute
of an element within the document.
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 Buggy Buggy Buggy Full Full Full None None None
Selector Reference
103 Selector Reference
In Safari versions up to and including 3, this rule isn??™t applied when the user
navigates using the back and forward buttons.
The Ultimate CSS Reference 104
:enabled
:enabled {
declaration block
}
SPEC
CSS3
BROWSER SUPPORT
Op9.


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