css.properties

z-index

The z-index property specifies the stacking order of positioned elements.

Formal Syntax

auto | <integer> | inherit

See specification

JavaScript Access

// Access via element.style
element.style.zIndex = 'auto';

Browser Support

standard | MDN ยท Spec

FeatureChromeFirefoxSafariEdge
z-index11112
auto11112
negative_values13112

Related Properties