When elements are positioned outside the normal flow, they can overlap other elements. The z-index property specifies the stack order of an element (which element should be placed in front of, or behind, the others).
Assigning a higher z-index value to the blue div and a lower z-index value to the red div will result in the following: