Skip to main content

Z-Index

Utilities for controlling the stack order of an element.

CSS Property:z-index
Classes:12

Z-Index Classes

ClassCSS
z-0z-index: 0;
z-10z-index: 10;
z-20z-index: 20;
z-30z-index: 30;
z-40z-index: 40;
z-50z-index: 50;
z-autoz-index: auto;
-z-10z-index: -10;
-z-20z-index: -20;
-z-30z-index: -30;
-z-40z-index: -40;
-z-50z-index: -50;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

z-[100]z-[999]-z-[1]

Responsive Variants

Apply z-index utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:z-0
768px+md:md:z-0
1024px+lg:lg:z-0
1280px+xl:xl:z-0
1536px+2xl:2xl:z-0

Related Utilities