I could find many questions on z-index issues related to internet explorer, but the solutions didn't work for me or I could not understand it correctly.
I have a form element.
Once the form submit is clicked, I want to overlay the form with a div so that nothing in the form can be clicked. For that I used an overlay which is positioned correctly and js is also working fine. It is working in chrome perfectly, but in IE8 z-index is not working.
So far I tried
1.
<div style="position:absolute; z-index:100"></div>
<form></form>
2.
<div style="position:absolute; z-index:100"></div>
<form style="position:relative; z-index:50"></form>
3.
<div style="position:relative; z-index:50">
<div style="position:absolute; z-index:100"></div>
</div>
<form style="position:relative; z-index:50"></form>
4.
<div style="position:relative; z-index:50">
<div style="position:absolute; z-index:100"></div>
<form style="position:relative; z-index:50"></form>
</div>
How can I get this working in IE8? All these works fine in chrome.