Question

Does the CSS 'z-index' property apply to all elements?

Answer

No, 'z-index' only applies to "positioned elements". This means that it has no rendering effect on non-positioned elements (see definition of "Applies to" [3]).

[1] http://omnimemory.com/flashcards/51ed7101e4b0a4db00b72348
[2] http://www.w3.org/TR/CSS2/visuren.html#z-index
[3] http://www.w3.org/TR/CSS2/about.html#property-defs

Learn

Author

xavi

Reviews
Last
next

Students 0