CSS - Z-Index

Z-Index

The z-index property in CSS is used to specify the order of stacking element(s). That is whether the element should be placed in-front or behind the other.

note
NOTE:

z-index property only works in elements that have position property specified. It also works on flex items. Z-index value can be positive or negative whole numbers (-2, -1, 0, 1, 2).

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT