I have a #outer div that contains a background image which appears fine in IE8 but does not show in IE7 or IE6. It actually appears to have collapsed the div and moves everything up a bit.
Hi,
The extra space at the top of the #wrapper in IE6 is being caused by an assumed line-height on the h1.logo div. You have the height set to 1px but IE6 is stretching the container since it treats height as min-height.
You can fix it by setting font-size:0 or overflow:hidden;
[B]h1.logo[/B] {
float: left;
height: 1px;
width: 924px;
[COLOR=Red]/*display: block; h1 and float are blocks by default*/[/COLOR]
margin: 0;
[COLOR=Blue]font-size:0;[/COLOR][COLOR=DarkGreen]/*ie6*/[/COLOR]
text-indent: -9999px;
}
And the #slider div does not appear correctly…
It does not load right for me in IE7 or 8 either when running your files locally.
It fixes all versions of IE when I set a height on it.
Thank you so much! That fixes the background image. It now appears in all versions of IE. But, of course, I have spotted another mistake in IE6. It appears that the #wrapper div has extra padding or margin applied to it. Not the case in IE7 and IE8. Can you figure why this is happening?
Hi,
The problem looks like the 36px top margin on the #wrapper, move that top margin to the #outer div and get rid of the BG positions on the #outer BG image.
You need to clean up the #facebook anchor styles too. You don’t have to re-declare the widths and heights on the hover state of the a. Just declare the things that change, the only thing changing here would be the BG position. Set that BG image on the “a” and not the #facebook div. Then it changes position on hover.