Z-index working

how the z-index property works?

Hi, himachandranp65
We have received your question. Please allow us some time to get back to you. Thank you for your patience!

The z-index property takes an integer value. The higher the integer, the higher the element will be in the stacking order. For example, if you have two elements with a z-index of 0 and 1, the element with a z-index of 1 will be in front of the element with a z-index of 0.

z-index can also take the value auto, which sets the stacking level of the element to 0, the default value.

image

image

2 Likes

Thank you. this is highly understandable !!!

3 Likes