Friday, July 29, 2011

z-index under IE

I had to figure out how to show dropdown menu over some content. I used z-index on css, however, IE did not seem to like it. In order for it to work on IE as compared to Firefox where it was perfectly fine, I added - or + signs as well as added either relative or absolute positioning.

For Example
#sddm div
{ position: relative;
visibility: hidden;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px dotted #330000;#5970B2;
z-index:+3;
}