Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Basic Layout Clearing Floats

Owais Ul Haq
Owais Ul Haq
2,020 Points

clear floats

Can someone please explain me that in video we used the the float clearing techniques or property in our main secondary content why we not use the property overflow: hidden or clearex in our class that we specially made to flow either tips or resort. Please check the video and explain me clearly.

https://teamtreehouse.com/library/css-basics/basic-layout/clearing-floats

Adam Rushton
Adam Rushton
Courses Plus Student 11,583 Points

clear: both is the better solution as not only is it supported by a lot more browsers (including old versions of IE), its also a lot easier to use.