Home / CSS Tips Generated By ChatGPT / The Z-index Property in CSS Control the stacking order of elements with z-index when overlapping occurs. Source Code .on-top { position: relative; z-index: 2; }