Answer by Nasser Torabzade for CSS Items below Float:Left not working

the safest & most extendable way is to add a new element with clear:both; before green div.

HTML

<div id='red' class='box'></div>
<div id='blue' class='box'></div>
<div id='clear'></div>
<div id='green'></div>

CSS

#clear{
  clear:both;
}

Leave a Reply

Your email address will not be published. Required fields are marked *