Leosquarez – Website Design and Development

Website Design and Development

If you have a dropdown menu that works fine in all the browser a part from IE 7 and you have a problem like this one:

Z-index work in Internet Explorer 7 (and lower )a different way:

“In Internet Explorer positioned elements generate a new stacking context, starting with a z-index value of 0. Therefore z-index doesn’t work correctly”

To fix z-index issue in ie give to the parent element a higher z-index actual fixes the bug!!!

WRONG:

<ul>
<li>
<ul class=”DROPDOWN”>
<li> …. </li>
<li> …. </li>
</ul>
</li>
</ul>

<div class=”SLIDER-JQUERY”>
………..
</div>

FIXED

<ul>
<li style=”z-index:999999″>
<ul class=”DROPDOWN”>
<li> …. </li>
<li> …. </li>
</ul>
</li>
</ul>

<div class=”SLIDER-JQUERY”>
………..
</div>

Try and let me know..

Popularity: 4% [?]

Posted by leosquarez On January - 25 - 2011 Condition EI6 Interesting from the web Web Development

2 Responses to “How to Fix IE7 z-index Problem”

  1. eva says:

    Thank you leo! I keep forgetting…

  2. An intriguing discussion is worth comment.I feel which you really should write more on this topic, it may well not be a taboo topic but normally men and women aren’t sufficient to speak on such topics.To the next.Cheers

Leave a Reply

Subscribe here

VIDEO

TAG CLOUD