This should clarify the situation:
Jsfiddle
HTML
<div class="parent">
<div class="one">
1
</div>
<div class="two">
2
</div>
<div class="floatClear"></div>
</div>
CSS
.parent {
border: 4px solid black;
padding: 20px 15px;
}
.one, .two {
border: 4px solid black;
height: 150px;
width: 150px;
float: left;
}
.one {
margin-right: 60px;
}
.floatClear {
clear: both;
}
Cervical !! http://jsfiddle.net/HtaFF/12/
user1467267
source
share