Floats

We also talked a lot about floats and how to use them to create a multicolumn layout, as we did on our home page:

We talked about the problems created by floats, such as collapse, and other content flowing around the float. We also discussed different ways, such as using the clear-fix, to avoid these problems. To learn more about floats, I'm going to point you right back to Sitepoint's A to Z CSS, and the short six-minute video (https://www.sitepoint.com/atoz-css-screencast-float-and-clear/) that covers the basics of floats and how to get used to their quirks.

Get Mastering CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.