Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Float explanation (beginner friendly)

This is not so much a question, but a means of helping others learn this topic. I found this page where it was very comprehensible. A highly recommended read if you want to reinforce your understanding of floats.


1 Answer


Floats are a sticky one to explain really, so many factors tend to affect them and all kind of wack things go on if you use them for layout and don't clear the float correctly.

But that being said here is a brief overview.

To add my little bit of info I stick by to understand what is going would be to say "floating an element takes it out of the normal document flow".

By doing this thing "float" around it :)

Very much like when you edit the text wrapping on work for example, you can have the text run round the outside of the image. That's is a simple example of the kind of affect the float property has on an element.

I'm not sure how helpful this will be but hopefully may clear a couple things up when you read the link :)