Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is wrong here with z-index?

 
Martin Garrido
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you make a jsfiddle example and say what browser[s] you see this in?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic