http://learnlayout.com/clearfix.html looks a lot simpler but having a "clearfix so the floated image remains inside the div" helps too