Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Use CSS Sprite for links

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33860
    Niki
    Member

    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?

    #84744
    Niki
    Member

    OK. Thanks for that link though, would save me the trouble of specifying class for each link.

    #84772
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.