Change the Position of Overlapping Elements with the z-index Property
Summary
When elements are positioned to overlap (i.e. using position:absolute, relative, fixed, sticky), the element coming later in the HTML markup will, by default, appear on the top of the other elements.
The z-index property can specify the order of how elements are stacked on top of one another.
Must be an integer.
Higher values for the z-index property of an element move it higher in the stack than those with lower values.