1

I would like to make all my link text to for from average_link to [ AVERAGE_LINK ] .. is this possible with only CSS?

3 Answers 3

11

It's not supported completely cross-browsers, but you can do it with the content property and the :before and :after pseudo classes

a:before
{
    content: "[";
}

a:after
{
    content: "]";
}

You can see support for the attributes here:

http://www.quirksmode.org/css/contents.html

3

Yes.

a:link.MyLink {
    text-transform: uppercase;
}

a:link.MyLink :before {
    content: "[";
}
a:link.MyLink :after {
    content: "]";
}

However, the last two rules will not work in IE.

0
-2

No. You can style the text but not change the text with CSS.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.