I would like to make all my link text to for from average_link to [ AVERAGE_LINK ] .. is this possible with only CSS?
+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:
Zurahn
2010-07-15 00:47:46
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
2010-07-15 00:48:04