Friday, June 27, 2008

z-index problem on IE6 and IE7

Sometimes z-index property defined in CSS file does not help. IE would still render some elements with bigger z-index behind elements with lower z-index.

Setting z-index using javascript fixed my z-index problem on IE.

document.getElementById('myElement').style.zIndex = "500";

No comments: