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

Header collapsing?

When I resize the browser below 769px, as defined in the media query, the main navigation and header collide into the content.

Why is this? Since only changes were made in the media query? How can I make the content area move down to respond to the header?

Here is my code: https://w.trhou.se/67cfmqou7t

Thank you!

1 Answer

Hey Lindsay,

I'm not seeing a definition of the clearfix class.

You should write it at the bottom of your media query.

.clearfix::after {
    content: " ";
    display: table;
    clear: both;
}

Best,

Jacob