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

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

Values

Δ

z-index: value;
 
Value: Description:
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
inherit Takes the same computed value as the property for the element's parent
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

Δ

[window.]document.getElementById("element-id").style.zIndex = "z-index";

Example | Values | auto

Δ

Example | Values | integer

Δ

Example | DOM

Δ

Reference

Δ