IE 6.0 z-index problem
I'm having a problem with the Z-index CSS property in IE 6.0
Html
<div id="banner"></div>
CSS
#banner{
background:url(pix/banner.PNG) top no-repeat;
z-index = -1;
}
URL: http://www.whizlabs.com/examprep/
In IE 6.0, it shows a line on the girl's forehead displayed in a banner at the top of the page. In other browsers, the line doesn't fit. How can I solve this problem?
Please help me.
Thanks Devesh M
a source to share
There is really no reason to split the girl into separate images.
Just use one image and then position it relative to the top right window of your cover.
#banner{
background:url(pix/girl.PNG) top no-repeat; /* where girl is the whole girl */
position:relative;
top:0;
right:150px;
}
Then make sure it's under your div header
a source to share
Z-index doesn't affect statically positioned elements, so you'll need to set the css property position
to something else, for example relative
, but I don't think you should be using z-index in this case.
For a quick fix, though you can try something like this:
* html #banner { margin-top: -1px; }
This trick above only applies to MSIE6.
a source to share