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

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

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