Introduction to Web Development Introduction to Web Development

CSS Floats and Document Flow

Nina Zakharenko
Nina Zakharenko

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