<div>
<p> The black box should be 5px below the float. </p>
<div style="height: 20px; width:50px; background-color: green; margin-bottom: 5px;"></div>
<div style="height: 10px; width:50px; background-color: blue; margin-top: 5px; margin-bottom: 5px;"></div>
<div style="height: 20px; width:50px; background-color: black; margin-top: 5px; "></div>
</div>