<style>
.box1{
border: 1px solid red;
}
.box2{
width: 100px;
height: 100px;
background-color: #dd1414;
float: left;
}
/* .box4{
width: 200px;
height: 200px;
background-color: yellow;
float: right;
} */
/* .box3{
width: 100px;
height: 150px;
background-color: blue;
clear:both;
} */
.box1::after{
content: '';
display: block;
clear: both;
}
</style>
<body>
<div class="box1">
<div class="box2"></div>
<div class="box4"></div>
<div class="box3"></div>
</div>