Z-index

Use z-index utility classes to control the index of your elements in the z dimension. When two elements overlap each other, z-index establishes what element overlaps the other. Usually elements with larger z-index overlap elements with smaller ones.

Supported values #

Class name
z-index value
Used in
-z--00Initial value
-z--11Prominent elements (E.g. focused buttons)
-z--1010Dropdowns
-z--2020Fixed elements (E.g. drawer)
-z--3030Backdrops
-z--4040Fixed elements with backdrop (E.g. drawer with backdrop)
-z--5050Modals
-z--6060Popovers
-z--7070Tooltips
-z--autoauto-

Example #

-z--0
-z--10
-z--20
-z--30
-z--40
-z--50
-z--60
-z--70