Log in

View Full Version : IE background image problem



Bennelliott
06-08-2007, 06:35 PM
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? :confused: Cheers again in advance :)

I hate Internet Explorer.:mad:

Bennelliott
06-08-2007, 07:01 PM
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

Bennelliott
06-08-2007, 07:49 PM
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

Twey
06-08-2007, 08:27 PM
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.