This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes what is wrong here with z-index? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "what is wrong here with z-index?" Watch "what is wrong here with z-index?" New topic
Author

what is wrong here with z-index?

Martin Garrido
Ranch Hand

Joined: Dec 04, 2010
Posts: 31
<div id="C">C<div id="c">c</div></div>
c with position relative and z-index negative is drawn behind her parent box (static)


<div id="C">C</div>
<div id="D">D</div>
D with position relative and z-index negative is drawn behind C (static)



..... I thought "Elements with non-static positioning will always appear on top of elements with default static positioning"
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Can you make a jsfiddle example and say what browser[s] you see this in?

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is wrong here with z-index?