z-index

The z-index property determines the position of an element and its children in the z-axis. In the case of overlapping elements, this value determines the overlapping order. In general, elements with a higher z-index overlap elements with a lower one.

Syntax



z-index: auto | integer;