On 9/23/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Is it possible to style generated text?
>
> /* Example: CSS */
> a {
>    font-family: arial;
>    color: red;
>    text-decoration: none;
>    }
>
> a.left-arrow:before {
>    content: "< ";
>    }

You can style generated content in standards-compliant browsers to a
large extent. Firefox does not support positioning generated content,
but otherwise you can change its display style, its floating/clearing,
fonts, colors, backgrounds, box model elements, and so on.

One thing to keep in mind is that :before and :after generate their
content within the main element, so if you have a border around the
tag, the generated content appears within that border.

Have fun!

Michael
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to