Given this situation:
HTML
<div class="container-module">
Some content.
<a id="show-overlay" href="#">Show overlay</a>
<div id="overlay">
Overlay content.
</div>
</div>
<div class="container-module">
Some content.
</div>
CSS
.container-module { height: 50px; z-index: 1; }
.overlay { background: white; display: none; height: 200px; z-index: 10; }
JS
getElementById("show-overlay").onclick( function(){
getElementById("overlay").style.display = "block";
return false;
});
...In IE7, when the overlay is shown, it is correctly covering the content in the first container module, but the content in the second container module is "showing through".
Has anyone else encountered this behavior? And are there any recommended ways of solving it?
Thanks!