<style>
.wp{
border: 1px #f00 solid;
height: 500px;
width: 500px;
background: #f00;
margin: 50px;
}
.wp1{
height: 400px;
width: 400px;
border: 1px greenyellow solid;
background: greenyellow ;
margin: 50px;
}
.wp2{
height: 300px;width: 300px;
border: 1px yellow solid;
background: yellow center center;
margin: 50px;
}
.wp3{
height: 200px;
width: 200px;
border: 1px blue solid;
background:blue center center;
margin: 50px;
}
.wp4{
height: 100px;width: 100px;
border: 1px #f0f solid;
background: #f0f center center;
margin: 50px;
}
</style>
</head>
<body>
<div class="wp">
<div class="wp1">
<div class="wp2">
<div class="wp3">
<div class="wp4">
</div>
</div>
</div>
</div>
</div>
</body>
</html>