z-index in class.
z-index in class.
The stack order of an element is specified by the z-index property. A higher stack order element is always in front of a lower stack order element.
z index is called height (if we need to learn shortly)
Z-index 0: 0th layer
Z-index 1: 1st layer
Z-index 2: 2nd layer respectively
If there are too elements in your page overriding in the same place, the z-index defines the item to be visible to user (the higher the z index more visible to the user)