I think add a clear fix element <code>&lt;div class="clearfloat">&lt;/div></code> after floating elements is better than add a container.