Forums

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

Home Forums CSS How to make my background images work in IE8?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #34054
    Mitra
    Member

    Hello! As you can see my background images work fine in FF and in Chrome and even in IE9..or so I am told, but I can’t get them to work in IE8…any suggestions?

    http://www.the-pc-pitstop.com
    my current css for this to work is:

    #content {
    background-image: url('http://the-pc-pitstop.com/wp-content/uploads/2011/08/top-frame720.png'), url('http://the-pc-pitstop.com/wp-content/uploads/2011/08/footer-frame720.png');
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, scroll;
    background-position: top, bottom;
    background-clip: border-box, border-box;
    background-origin: padding-box, padding-box;
    background-size: auto auto, auto auto;
    padding-top: 100px;
    padding-left: 10px;
    padding-bottom: 20px;
    padding-right: 5px;
    }

    Your assistance is greatly appreciated!

    #85545

    @chriscoyier Have you though about removing white-space: nowrap; from the code element so that this doesn’t happen?

    #85548
    TheDoc
    Member

    Or people could use the pre tags ;)

    Have a look at this: http://76.74.170.157/post_Cross_Browser_Multi_background_images__including_I-16839.html

    You’ll need to do some extra work to get multi-backgrounds working in IE.

    Maybe the Shiv will help with this, I’m not sure.

    #85556

    @TheDoc Just because that is the right way to do it doesn’t mean people will. Removing nowrap limits the ‘breaking’ in these cases.

    #85562
    mcguiver178
    Member

    Well there could be two reasons, either the multiple background issue, or the .png try to use jpgs, altho I´m not completely sure if IE8 can or not read pngs, but I knoe IE has something against them.

    #85561
    Rob MacKay
    Participant
    #85723
    Mitra
    Member

    Thanks everyone. I will try some of these solutions and update once I find the one that works best! So

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