Check out a free preview of the full Introduction to Web Development course:
The "CSS Floats and Document Flow" Lesson is part of the full, Introduction to Web Development course featured in this preview video. Here's what you'd learn in this lesson:

When you ask HTML elements to float, you are asking the browser to fit as many of those elements next to each other until there isn’t any more room. Additional elements will then wrap to the next line. Brian demonstrates how floats can be used in page layout and some of the odd behavior they can bring. <a href="">Example on CodePen</a>

Get Unlimited Access Now