How does Z index function?
Overlapping may occur while using CSS for positioning HTML elements in a webpage.
Z index function helps in specifying the overlapping element. It is a number which can be positive or negative, the default value being zero.
z-index is a CSS attribute of a HTML element used to specify the depth of that element. An element having greater z-index value, more it will seem to be towards the screen.