Search Keyword:

25Aug

Quick fix in z-index issue on Internet Explorer (IE) bug

Posted by admin as CSS

This article will guide you on how to provide simple quick fix about the z-index css property not working in Internet Explorer. I had encountered this problem while using JQuery Tools Overlay Library on my application. The library works fine in Mozilla Firefox, Chrome and in Internet Explorer 7 but unfortunately does not work in IE6 and IE8.

To solve this problem, we had to wrap the div that is to be on top of all the other elements with a div that has higher z-index than that div.

 

For example, this is the div that is to be overlayed:


<div style="position:absolute;z-index:5000;">
     content here
</div>

The z-index of the div is 5000, we have to wrap it in a div that has higher z-index, 5001 in this example, but you can put any number you like provided that the number must be higher than the z-index of the inner div, like this:


<div style="position: relative; z-index: 5001">
     <div style="position:absolute;z-index:5000;">
          content here
     </div>
</div>

 

Well that’s how I had solved it. Hope this quick fix works for you also. ;)

  • Digg
  • del.icio.us
  • Tumblr
  • StumbleUpon
  • Technorati
  • Reddit
  • NewsVine
  • Slashdot
  • DZone
  • Facebook
  • Twitter

Comment Form

Sponsored Links



Recent Comments

  • anup: thanx it helped me alot…
  • admin: try to look at window.location function of Javascript and place it under the success function of the AJAX...
  • ana: it works for me, but after success, how can i forward the url to a certain page? thanks
  • admin: Hello Don, do these steps again and again until the PSP reboots. Restore your PSP’s Default settings in SYstem...
  • don sb: my psp was already hacked then i changed the screen cos it broke,so at one point the battery lost total...