Previous Message
Next Message

Re: [css-d] This site looks better in....

Sent by Eric A. Meyer on 1 February 2002 17:05


At 17:18 -0500 2/1/02, Kevin Smith wrote:

>Now, what do you see if you put a:after{content:attr(href)} in your
>stylesheet?

    The value of the 'href' attribute for any given 'a' element. 
Thus, you would see something like:

    homehttp://www.meyerweb.com/
    erichttp://www.meyerweb.com/eric/
    kathttp://www.meyerweb.com/kat/

I didn't insert a space on purpose, because the rule you wrote didn't 
call for one.  The browser might set some separation, but that would 
be its call.  More pleasing to the human eye would probably be:

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

CSS may not be Perl yet, but it's getting there.

--
Eric A. Meyer (http://www.meyerweb.com/eric/), List Chaperone
"CSS is much too interesting and elegant to be not taken seriously."
   -- Martina Kosloff
Previous Message
Next Message

Message thread: