z-index in CSS

z-index in CSS

z-index

 z-index is what decides where your element would be placed on 3-dimension. When you have an element that is not positioned, Where you haven't set it to absolute or relative or fixed. The z-index is not applied.

https://developer.mozilla.org/en-US/docs/Web/CSS/z-index