Do w3c standards have the same z-indexes

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.

+3
source share
7 answers

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.

+7
source

. , html.

+3

, z-index . , :

.

. CSS2 Spec.

+3

"z-index: auto '( 6), ( 4), ( 5) ( 5), , , , stacking context.

http://www.w3.org/TR/CSS2/visuren.html#z-index

w3c 5, , . .

+2

. , . - x y , , z ? . - "" .

, . . z- , , z, , , HTML. , , z.

0

Techism W3C z-. , , z , '0'. , z-, z- 0, -, , z- 0, . , , .

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.

0
source

All Articles