block z-positioning without z-index

Posted by Peter on Stack Overflow See other posts from Stack Overflow or by Peter
Published on 2012-11-09T10:58:16Z Indexed on 2012/11/09 11:00 UTC
Read the original article Hit count: 224

Filed under:
|
|

Please, have a look at: http://twitter.github.com/bootstrap/base-css.html

There are many examples like this one:

enter image description here

if you look closer to the block borders, you can see that the gray block is under the white one. Using the browser's developer tools you can see that both boxes have an inherited z-index: auto;

I can't reproduce this effect on my website (without using z-index).
So, my question is: Why is the gray block under the white one?

© Stack Overflow or respective owner

Related posts about html

Related posts about css