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 trialJared 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.