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 Polish the Navigation and Footer

why my footer is being pulled just below the image?

my footer is being displayed below the fourth image instead of the bottom of the page

here is my relevant html and css output

2 Answers

Hi Raghav!

You should try to add a new property to your footer called clear: both;. This will clear both sides of your footer from floated elements and it should push it to the bottom of your page.

Add this to your style.css and it should work.

footer {
    clear: both;
}

thank you sir,also how is your code in a grey box?

You're welcome! You can see how to do that by clicking "Markdown Cheatsheet" button on top of your "Post comment/Post answer" button. It'll pop up a little text box.

could you post the code? I don't feel comfortable downloading anything. As I am sure a few other people might feel the same way.

sorry sir,i'll bear that in mind next time,for now i got my answer thanks to Markus Y