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.

CSS How to Make a Website Styling Web Pages and Navigation Style the Image Captions

David Norton
David Norton
2,762 Points

what does clear: both; actually do? Obviously it is clearing two items. Which two items?

footer { font-size: 0.75em; text-align: center; clear: both; padding-top: 50px; background-color: #999; color: #ccc;

}

5 Answers

David Omar
David Omar
5,676 Points

it means that it wont have floating elements on right or left side

David Norton
David Norton
2,762 Points

Thank you. So does that means it is being pushed below any floating elements?

David Omar
David Omar
5,676 Points

yea I guess you can say that

David Norton
David Norton
2,762 Points

Thanks David I appreciate your help.

Nah it means it won't let any let anything sit left or right of it.