Home / CSS Tips Generated By ChatGPT / Layering with z-index in CSS Control the stacking order of positioned elements with z-index. Source Code .above { position: relative; z-index: 2; } .below { position: relative; z-index: 1; }