Martin Möller wrote:
> Dear List,
>  i have a markup like this:
> 
> <ul>
>      <li (left floating)>
>           <div class="preview"><a href="#">img</a></div>
>           <div class="big-image">img + text</div>
>      </li>
>      <li>
>           <div class="preview"><a href="#">img</a></div>
>           <div class="big-image">img + text</div>
>      </li>
>        and so on ....
> </ul>
> 
> On mouse hover on the link in the preview div -> i display the big-image div
> The big-image div is always positioned absolute right above the preview image.
> 
> I gave the Big-Image Div a z-index to make it show above all the other
> list items as long its
> hovering.
> 
> This works fine in Firefox but it fails in IE generally.
> 
> In IE i see my big-image div UNDERNEATH following items and its ABOVE
> the items which came before in the markup.
> Its like the following Items are having an higher Z-Index.
>

IE treats a positioned element that has layout as if it would establish 
a new stacking context.

float is a haslayout trigger, and most probably your LI have 
position:relative in order to offset the absolutely positioned 
big-image. (if not, the following is of no value, and you would have to 
post an URL of a test case).

Now, all these LI establish a new stacking context in IE. And the LI 
that are coming later in the source are painting over the preceeding 
ones. Any object located inside the LI cannot "leave" its parental 
stacking context, it will be painted over, too.

I don't know how you are managing the hover effect on the link to 
display the sibling div. But a solution would remove the 
position:relative from the LI and add position:relative on LI:hover only.

Ingo


-- 
http://www.satzansatz.de/css.html
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to