The z-index property specifies the stack order of an element (which element is in front of or behind the others). It only works on positioned elements (position: absolute, relative, fixed, or sticky).
Edit the code below and click Run to see the result live.