If you want to stack elements visually on top of each other, use absolute positioning to achieve the overlap, and then use the
z-index CSS property to determine the order of elements along the web page’s z axis. The z axis comes from the Cartesian coordinate system, which has x, y, and z axes for describing a three-dimensional space. The x and y axes run horizontally and vertically. With CSS, the z axis runs from the monitor ...