<style>
body {
margin: 0;
}
.container {
width: 200px;
height: 500px;
outline: 2px solid black;
}
.first {
position: absolute;
height: 500px;
width: 200px;
background-color: red;
}
.second {
position: absolute;
height: 400px;
width: 200px;
background-color: blue;
}
.third {
position: absolute;
height: 300px;
width: 200px;
background-color: pink;
}
.fourth {
position: absolute;
height: 200px;
width: 200px;
background-color: yellow;
}
.fifth {
position: absolute;
height: 100px;
width: 200px;
background-color: green;
}
</style>
<div class="container">
<div class="first">
<div class="second">
<div class="third">
<div class="fourth">
<div class="fifth"></div>
</div>
</div>
</div>
</div>
</div>