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

"clear: both;"

Hello, for some reason, even though I have placed the "clear: both;" element under footer. The footer still appears next to the images and not at the bottom.

5 Answers

We are going to need to see your markup. Clear:both; is not an element - it is a declaration. Please supply some markup for us to see whats going on. Thanks! Good luck!

Thanks Michael Sorry is this what you mean?

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

}

I just found the answer, sorry to bother, I had left ";" this out.

Nice. I figured it was something semantic. Always make sure to close your declarations with a semi-colon. Or use a CSS validator and it will catch the errors.

Thanks, I will be sure to do that from now on.