I wanted to know if what I want to do is even possible, since I couldn’t get it to work:
<body>
<header>
<panel>
<login>
</login>
</panel>
</header>
<content>
</content>
</body>
Here’s the hierarchy I want:
<panel>above<header><login>under both<header>and<panel><login>above<content>
Additional Info:
<login> is a position: absolute login form which slides down from beneath the <header> on demand but should remain above the page’s <content>
Hope you could help me out..
Regrettably, child nodes cannot have a
z-indexlower than their ancestors. To get the effect you want, you would have to moveloginoutside ofheader.Example
Note: I’ve changed your markup slightly to conform to HTML standards. If you wish to continue using the invalid markup, simply replace
<div class="XXX">with<XXX>and corresponding</div>with<XXX>whereXXXis the value of theclassattribute.