HTML:
<div class="wrap">
<div class="fixed"></div>
</div>
<div class="cover"></div>
CSS:
.cover{z-index: 10;}
.wrap{position: relative; z-index: 1;}
.fixed{position: fixed; display: block; z-index: 1;}
Example: http://jsfiddle.net/6fq8L/
When scrolling the page, the .cover element is positioned behind the .fixed element despite having a higher z-index property. How can we make the .cover element appear above the .wrap and .fixed elements when the page is scrolled?