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
Yuval Blass
18,134 Pointsoverflow property
Hi, I don't understand what the overflow property does? (in common to float and clear properties).
1 Answer
egaratkaoroprat
16,630 PointsDo you have any reference with float and clear? These properties can be used in another context as well.
Basically, the overflow property sets the behavior of the content inside a container element. These are the values for overflow:
- visible - If the content is larger than the container element, the container will match its size, so you can see the full content.
- hidden - If the content overflows the container, it gets cut out. The container does not match its size.
- scroll - The container always shows a scrollbar whether the content overflows or not.
- auto - In case there is an overflow, the container will display a scrollbar.