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 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.