Previous Message
Next Message

Can I style generated content?

Sent by Jono on 23 September 2005 14:02

Is it possible to style generated text?

/* Example: CSS */
a {
   font-family: arial;
   color: red;
   text-decoration: none;

a.left-arrow:before {
   content: "< ";

<!-- Example: HTML -->
<a href="thispage.html" class="left-arrow">Go to this page</a>

The link will appear in all red arial, like this:
< Go to this page

Is it possible to make the "< " appear in a different font or color?  If
so, how would I make the "< " appear different on :hover?

I have never used generated content b/c IE doesn't support it, but I am
trying something new, so I though I'd ask.

css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: