The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Use CSS Sprite for links
Hi,
I want to show icons describing the link type on my website, similar to Wikipedia. I already have it working using separate image for each link type – external, pdf, etc.
Current code:
a.pdf:link { background-image: url('http://site.com/pdf.gif'); background-repeat: no-repeat; background-position: right; }
Now I want to use CSS sprite for all link types. So how can I do that?
OK. Thanks for that link though, would save me the trouble of specifying class for each link.
This may be of help: http://www.aaronbarker.net/2010/07/diagonal-sprites/