Simple Tips on Containing Floats
The float property of CSS is a powerful way to lay out the elements of a web page. When an element is floated, it is “taken out of the document flow”—meaning that the other elements (for the most part) act like it’s not there—and this can cause some unexpected layout results. Floats often need to be “contained”; and, fortunately, there are some easy ways to do this, as demonstrated in this post…


