HTML Overlay :: On top of all

Created For: http://stackoverflow.com/questions/10600863/overlaying-divs-with-z-index

by Salustiano Silva

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:902;">
    Contents of container 2
</div>
<div style="z-index:902;">
    Contents of container 3
</div>