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 trialRaghav Agrawal
4,654 Pointswhy my footer is being pulled just below the image?
2 Answers
Markus Ylisiurunen
15,034 PointsHi 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;
}
Wilfredo Laboy
2,019 Pointscould you post the code? I don't feel comfortable downloading anything. As I am sure a few other people might feel the same way.
Raghav Agrawal
4,654 Pointssorry sir,i'll bear that in mind next time,for now i got my answer thanks to Markus Y
Raghav Agrawal
4,654 PointsRaghav Agrawal
4,654 Pointsthank you sir,also how is your code in a grey box?
Markus Ylisiurunen
15,034 PointsMarkus Ylisiurunen
15,034 PointsYou'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.