> home
> how we work
> who we're working for
> about us
> publications
> buy apache essentials
> client login

play
static·red
edmonton and area web development

Current Projects

Edmonton Weather


>>Le blog.

speakeasy archives


neat CSS trick

<< it begins... | Main | unfortunate quotes #72 >>

Have you ever wanted to have your site automatically display a URL in brackets next to what it's linked to? (for example: link (http://staticred.net) )

Now you can, at least in Opera and Mozilla. In your stylesheet, add the following ruleset:

a:after {
    content: " (" attrib(href) ")" ;
}

That'll do it!

Content - Cascading Style Sheets Properties

Posted by Darren James Harkness on Tuesday, August 20, 2002 11:21 AM
Trackbacks...


Comments:

Post a comment









Remember personal info?


Comments:


* under no circumstances will your email address be traded for a sack of quarters. No-sirree.