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

Hannah Novotny
PLUS
Hannah Novotny
Courses Plus Student 9,275 Points

How can I get rid of the extra space between the top of the website and the nav bar?

I'm not sure how to get rid of the space in between the nav bar and the top of the website. Here is a snapshot of my code https://w.trhou.se/0jopyzpcy3. Any help would be greatly appreciated.

1 Answer

Steven Parker
Steven Parker
229,644 Points

On line 99 of the CSS file there's a height constraint on the document body making it as big as the window (100%). This value is apparently inherited by the header.

Try giving the header an explicit height constraint (I used 80px).