.blue { background-color: blue; width: 100px; height: 100px; } .red { background-color: red; width: 100px; height: 100px; position: relative; top: -50px; left: 50px; z-index: -1; }
<div class="blue"> </div> <div class="red"> </div>