Previous Message
Next Message

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

Sent by John Woram on 1 February 2002 18:06


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

I think the dawn is beginning to break here<g>. I think I got hung up
trying to decode the following:

"attr(X) This function returns as a string the value of attribute X
for the subject of the selector."

Uh, right. It looks like this means "This function displays the URL of
each link." And as Eric pointed out, you can put a text string before
and/or after the URL.

But now that I've got it to work, I think I'll stick with <span
class="printthis"> (or similar). That way, each link description can
be customized as desired. Also, attr(X) doesn't work in IE (yet), and
that's what almost 90% of my site visitors are using.

John
Previous Message
Next Message

Message thread: