What is the use of z-index in CSS?

It specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order. z-index only works on positioned elements like position:absolute, position:relative, or position:fixed.

Suggest An Answer

No suggestions avaliable!

Latest post from CSS interview questions

Ask Question