Jump to content

background image issue with ie6


esport

Recommended Posts

Hi,

I am developing a website for a client an when viewing the website in ie6 the background image doesn't appear and instead is replaced with a grey background.

 

Here is a link to the site

http://www.dairytechrefrig.com.au/new/

If you view it in FF or any other browser including ie but not ie6, it appears correctly.

 

I have attached a screen shot of the website in what it looks like in ie6.

 

Here is code i am using.

#middle{
background-attachment:fixed;
background: url(../images/middle.jpg) no-repeat scroll left top transparent;
background-repeat:no-repeat;
position:relative; 
height: 231px !important;
margin-top: 52px;
width: 969px;
display: block;
overflow: visible;
}

 

 

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/235058-background-image-issue-with-ie6/
Share on other sites

hmm from the sound of it i would think it's a transparency issue, but that's not possible since it's a jpg. (ie6 does not support semi transparency)

And i could see a sneaky 1x1 trans png over it. (if you have that though, overwrite it  with conditional comments)

another thing could be is that you have set the z-index and the z-index gets reset if you don't give the parent item one. (in IE6)

Also note background

 

also : background-attachment:fixed; is not something IE6 supports. (as far as i know you need to do that with javascript)

 

Hope this helps a bit. I am in a bit of a hurry here, weekend :)

 

btw, may I ask why you use so much !important declarations. better use conditional comments for deprecated browsers)

 

And i could see a sneaky 1x1 trans png over it. (if you have that though, overwrite it  with conditional comments)

 

 

* i meant couldn't :) but the stuff behind it probably made that clear already

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.