In CSS, the z-index property sets the stacking order of an element, usually a layer. Layers with greater z-index numbers will appear in front of layers with lower z-index numbers .