Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!doctype html> <title>Example</title> <style> div { width: 200px; height: 80px; position: relative; padding: 10px; font-family: sans-serif; } .infront { background-color: limegreen; top: 70px; left: 120px; z-index: 2; } .behind { background-color: gold; top: -80px; left: 35px; z-index: 1; } </style> <div class="infront"> z-index: 2 </div> <div class="behind"> z-index: 1 </div>