CSS Properties

Z-index Properties

How to set element Layer (z-index)

z-index property is used to set the layer of elements. We can set this property to auto (default) and number. It works only with position property value: fixed, relative, absolute.
The element which has higher number appear at the top.

img {
position: fixed;
z-index: 565;
}


Cristle Academy

Compiler