<div class="parent">
  <div class="child">
    z-index: 1
  </div>
    <div class="child-2">
        z-index: 2
  </div>
</div>
.parent {
  position: relative;
}

.child {
  position: absolute;
  z-index: 1;
  top: 80px;
  left: 50px;
  
  width: 100px;
  height: 60px;
  padding-top: 40px;
  background-color: #fafafa;
  border: 1px solid #ccc;
  font-size: 12px;
  text-align: center;
}


.child-2 {
  position: absolute;
  z-index: 2;

  width: 100px;
  height: 60px;
  padding-top: 40px;
  background-color: #fafafa;
  border: 1px solid #ccc;
  font-size: 12px;
  text-align: center;
}
Rerun