Name
z-index
Synopsis
This property sets the placement of a positioned element along the z-axis, which is defined to be the axis that extends perpendicular to the display area. Positive numbers are closer to the user, and negative numbers are further away.
Values:
<integer> | auto
| inherit
Initial value:
auto
Applies to:
positioned elements
Inherited:
no
Computed value:
as specified
Get Cascading Style Sheets: The Definitive Guide, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.