Just a quick question and I can’t find the answer. I heard somewhere that you cannot (well, maybe, but not meet w3c standards) have the same z-indices. It's true? Can I have two elements <div>with z-index 3? Thank.
<div>
This is not true. It is permissible to have several elements with the same z-index. To quote the W3C CSS2 specification :
Boxes with the same stack level in the stack context stack in the reverse order according to the order of the document tree.
. , html.
, z-index . , :
z-index
.
. CSS2 Spec.
"z-index: auto '( 6), ( 4), ( 5) ( 5), , , , stacking context.
http://www.w3.org/TR/CSS2/visuren.html#z-index
w3c 5, , . .
. , . - x y , , z ? . - "" .
, . . z- , , z, , , HTML. , , z.
Techism W3C z-. , , z , '0'. , z-, z- 0, -, , z- 0, . , , .
, z-. , z-. .
Paste the link http://fiddle.jshell.net/Tnabq/show/ into http://validator.w3.org/
The above jsfiddle link is the result of a jsfiddle example that I did at http://jsfiddle.net/Tnabq/ without all 4 windows.