<!DOCTYPE html>
<html><body>
<style>
body > div {
  position: absolute;
  width: 70px;
  height: 70px;
  padding: 5px;
}
.box1 {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  background-color: red;
}
.box2 {
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  background-color: green;
}
</style>
<div style="left: 0px; top: 0px;">
  <div class="box1"></div>
  <div class="box2"></div>
</div>
<div style="left: 100px; top: 0px;">
  <div class="box