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

Maddie Duffy
Maddie Duffy
3,659 Points

My footer isn't sticking to the bottom of the page/ my main content is collapsing!?

https://w.trhou.se/covvhfpxag

What am i doing wrong???

João Panão
João Panão
2,951 Points

Hello. I'm also learning and I'm not 100% sure if this is right but:

*Add clearfix to solve float problems in main-header class (it stays: <header class="main-header clearfix">). That way your navigation bar is solved.

  • In the media querie for min-width: 769px, you added have columns float. Remove float from the columns and the footer stays okay. Instead of: .name, .col { float: left; }

make it:

.name { float: left; } And everything is okay :)

Cheers

1 Answer

Maddie Duffy
Maddie Duffy
3,659 Points

Thank you! I also had to add the clearfix class to my containers!