Clear and Clearfix
The clear CSS property sets that what elements can float beside the cleared element and on which side. The clear property applies to floating and non-floating elements. The clear property can have one of the following values:
Clear: none | left | right | both | inline-start | inline-end;
<div id="p1">paragraph1</div>
<div id="p2">paragraph2</div>
#p1{
float: left;
background-color: aqua;
width: 100px;
height: 100px;
}
#p2{
clear:left;
}