Odpowiedź :
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kwadraciki</title>
</head>
<body>
<style>
.a{
width: 300px;
height: 300px;
background-color: red;
margin-left: 25px;
padding-top: 25px;
box-sizing: border-box;
border: 2px solid black;
margin: auto;
}
.b{
width: 250px;
height: 250px;
background-color: orange;
margin-left: 25px;
padding-top: 25px;
box-sizing: border-box;
border: 2px solid black;
}
.c{
width: 200px;
height: 200px;
background-color: yellow;
margin: auto;
margin-left: 25px;
padding-top: 25px;
box-sizing: border-box;
border: 2px solid black;
}
.d{
width: 150px;
height: 150px;
background-color: pink;
margin: auto;
border: 2px solid black;
}
</style>
<div class="a">
<div class="b">
<div class="c">
<div class="d"></div>
</div>
</div>
</div>
</body>
</html>