Results 1 to 4 of 4

Thread: IE background image problem

  1. #1
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IE background image problem

    Hi all, thank you in advance for reading and helping me out.

    Just one small problem with IE.

    I use this css as part of my attributes for the body tag:
    body { background: #FFFFAA url("../images/bg.bmp") top center repeat-y }

    This renders fine in FF, but only shows the #FFFFAA colour in IE, rather than the image on top. (I left in the #FFFFAA bit in case someone was using a window wider than the image (1024px)).

    It sounds like it might be just another small part of the syntax that IE hasn't accounted for. Any ideas as to what it might be, or where I'm going wrong? Cheers again in advance

    I hate Internet Explorer.

  2. #2
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ive tried:
    url("../images/bg.bmp")
    url('../images/bg.bmp')
    url(../images/bg.bmp)
    Ive tried without #FFFFAA
    ive tried making it a seperate class (called .ie for a laugh) and including it in an IE only stylesheet.
    Ive tried { background-image: url("../images/bg.bmp") top center repeat-y }
    Ive even tried { background: #FFFFAA url("../images/bg.bmp"); background-repeat: repeat-y; background-position: top center }

    Still not appearing grrrrrrrrrrr

    I've said it once before, and I'll say it again, I HATE INTERNET EXPLORER
    Last edited by Bennelliott; 06-08-2007 at 07:21 PM.

  3. #3
    Join Date
    Apr 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Fixed it. for some reason the bmp file had some kind of error that i cant fathom out. i took a screenshot of it and made a new file, works fine now

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Don't use BMP. These files are completely uncompressed and much, much bigger than the exact same file in another format. Save the file as PNG or JPEG.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •