z-index
Definition
The z-index property specifies the order in which elements overlap each other when they need to be rendered in the same space. An element with a greater z-index value will cover an element with a lower value.
Example
div {z-index: 2}
Characteristics
Possible values
auto- Equivalent to
z-index value of 0. - integer
- The index value used for rendering overlapping elements.
inherit- Use the same computed value as the parent element for this property.
Default value
auto
Applies to
All elements that have the position property set to a value other than static.
Inherited
No