Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 17, 2006 01:22 PM by TheFatMan
Member
245 Points
53 Posts
Oct 17, 2006 01:22 PM|LINK
Hi folks,
I've used selectors such as the following:
a[href$=".doc"] { background: url(../images/doc.gif) no-repeat right center; }
...but I'd like to modify that so the image appears after the hyperlink and not as a background. Something like...
a:after[href$=".pdf"] {content:"<img src="../images/pdf.gif">"}
...is this even possible, or did I just get the syntax wrong?
cheers,
Ben
TheFatMan
Member
245 Points
53 Posts
Can CSS selectors be used in this way?
Oct 17, 2006 01:22 PM|LINK
Hi folks,
I've used selectors such as the following:
a[href$=".doc"] { background: url(../images/doc.gif) no-repeat right center; }...but I'd like to modify that so the image appears after the hyperlink and not as a background. Something like...