Menu
Samaritan's Purse

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.

SYNTAX

CSS

z-index: value;

JS

object.style.zIndex = "value";

VALUES

<'z-index'> = auto | <integer> | inherit
auto

Automatically specified by the user agent.

<integer>

Specifies one or more decimal digits (0-9).

inherit

Specifies the same value as the parent.

INITIAL

auto

EXAMPLES

AUTO

INTEGER

JS

World Wide Web Consortium (W3C)