[resolved] CSS3 and Internet explorer - background image (5 posts)

  1. matthisco
    Posted 4 years ago #


    I'm using this to style up links to documents:

    a[href$=".pdf"] {
      background: url(images/pdf.png) no-repeat left center;
      padding: 40px 0 40px 88px;

    Can anyoneplease tell me how I can get it to work in internet explorer?


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    That's CSS 2 - not CSS 3 - and it should work just fine in IE9.

  3. matthisco
    Posted 4 years ago #

    Sorry my bad, is there a way I can get css2 to work in IE 6?

    Thanks again

  4. wpismypuppet
    Posted 4 years ago #

    No... IE6 does not support this type of reference... you can try one of these methods:

    1. Forgot trying to get this to work in IE6. Microsoft doesn't even support this browser anymore, so what does that say?

    2. Manually add a class to these tags and get them that way

    3. Use jQuery to add the styles/class name

    4. Try using the IE7.js library to make IE6 act like IE7 and up... may or may not work based on the version of IE you are trying to use. http://code.google.com/p/ie7-js/

  5. matthisco
    Posted 4 years ago #

    Brilliant thanks folks

Topic Closed

This topic has been closed to new replies.

About this Topic