Put clear property to restore the flow. My Codepen
HTML
<div id="container">
<div class="coucou" ></div>
<div class="coucou" ></div>
<div class="coucou" ></div>
<div class="clear"></div>
</div>
CSS
#container{
width : 600px;
background:pink;
}
.coucou {
margin-left:2px;
width :100px;
height:200px;
float: left;
background:blue;
}
.clear {clear:both;}