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


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 :)