tags:

views:

26

answers:

3

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

A: 

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

ttchong
+1  A: 

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

Zurahn
A: 

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.

SLaks