Prev | Current Page 166 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"


Other Relevant Stuff
content (p. 348)
inserts content before or after an element
The Ultimate CSS Reference 114
:after
:after {
declaration block
}
This pseudo-element represents
generated content (p. 347) that??™s rendered
after another element. This
pseudo-element is used in conjunction
with the content property (p. 348), and
additional properties can be specified
to style it. Note that the generated
content is only rendered??”it doesn??™t
become part of the document tree.
Compatibility
SPEC
CSS2
BROWSER SUPPORT
Op9.2+ Saf1.3+ FF1+ IE7
BUGGY FULL PARTIAL NONE
Example
This example will render the text ???cm??? in
the color #cccccc, after a span element
with a class value of "centimeters":
span.centimeters:after {
content: "cm";
color: #cccccc;
}
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
Buggy Full Full Full Partial Partial Partial None None None
In Firefox versions up to and including 2, this pseudo-element is not fully stylable,
most notably when it comes to applying positioning properties.


Pages:
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178