z-index

The z-index property specifies the stack level of the box in the current stacking context and whether the box establishes a local stacking context.

CSS2

Syntax

z-index: auto | <integer> | inherit
Initial: auto
Applies To: positioned elements
Inherited: no
Percentages: NA
Media: visual

Values

z-index: value
Value Initial Description
auto auto Stack level of the generated box in the current stacking context is the same as its parent's box and the box does not establish a new local stacking context
integer Stack level of the generated box in the current stacking context and the box also establishes a local stacking context in which its stack level is 0

DOM

object.style.zIndex = "value";

Example | auto

Example | integer

Example | DOM

External

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification