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.

Jared Hensley
8,106 PointsWhy does my header look like this?
here is my code: https://w.trhou.se/6er8z08lyk
I have a thin green bar that contains my portfolio, about etc. Then under the green bar, the lighter green shows up again. I'll try to post an img if possible.
1 Answer

Thomas Workman
7,173 PointsHey Jared.
You currently have 20px of top and bottom margin on your nav element. If you remove that, you should see the extra space go away. Hope that helps.
nav { text-align: center; padding: 10px 0; margin: 20px 0; }
Jared Hensley
8,106 PointsJared Hensley
8,106 PointsSpecifically, this is what changes everything.
header { float: left; margin: 0 0 30px 0; padding: 5px 0 0 0; width: 100%; }
when I remove the float:left; everything is fine. but the instructor is including it in the tutorial so I'm attempting to do so as well.