Suppose I have this code:
<div class="parent">
<div class="child">
Hello world
</div>
</div>
<div class="wholePage"></div>
This jsFiddle: http://jsfiddle.net/ZjXMR/
Now, I need to have<div class="child"> in above of <div class="wholePage"> but in the jsFiddle you can see that the child element rendered before <div class="wholePage">.
If you remove the parent class position or z-index, everything works fine. This is the correct behavior that I need: http://jsfiddle.net/ZjXMR/1/
How can I do that with z-index and without removing anything from page?