Apply this code and you can see it. The margine-top of the internal box is applied to the outside. How can inBox not affect the box?
<!DOCTYPE html>
<html>
<head>
<style>
.box{
width: 400px;
height: 400px;
background-color: red;
}
.inBox{
width: 200px;
height: 200px;
background-color: white;
margin-top: 100px;
}
</style>
<meta charset="utf-8">
</head>
<body>
<div class = "box">
<div class = "inBox">
</div>
</body>
</html>