HTML Overlay :: On top of all
Created For: http://stackoverflow.com/questions/10600863/overlaying-divs-with-z-index
HTML
<div style="z-index:902;">
<div style="position: fixed; z-index:903; width: 100%; height: 100%; left: 0; top: 0;background:#ccc;">
Overlay
</div>
Contents of container 1
</div>
<div style="z-index:901;">
Contents of container 2
</div>
<div style="z-index:901;">
Contents of container 3
</div>
CSS
div {
position: relative;
}