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
Austin Ritz
1,580 PointsExtra space in my Header.
Both the nav and my header elements are floated as they are meant to. But the header elements are position slightly higher that the nav elements.
@media screen and (min-width: 660px) {
/**************** HEADER ****************/
nav { background: none; float: right; font-size: 1.125em; margin-right: 5%; text-align: right; width: 45%; }
#logo { float: left; margin-left: 5%; text-align: left; width: 45%; }
h1 { font-size: 2.5em; }
h2 { font-size: 0.825em; margin-bottom: 20px; }
header { border-bottom: 5px solid #599a68; margin-bottom: 60px; } }
Rich Barker
7,832 Pointsremove the last curly brace from the far right of the header.
Also you can take a screen shot from your workspace, it's a little nicer to look at than copy and paste. Good luck.
1 Answer
karson Adam
32,623 Pointsthe problem is in responsive.css file
@media screen and (min-width: 660px) {
/****************
HEADER
****************/
nav {
background: none;
float: right;
font-size: 1.125em;
margin-right: 5%;
text-align: right;
width: 45%;
}
}
you need to remove margin-rigth in nav selector because it force element to break into new line
Austin Ritz
1,580 PointsAwesome man thanks!
karson Adam
32,623 Pointsyou are wellcome
Austin Ritz
1,580 PointsAustin Ritz
1,580 Pointshttps://w.trhou.se/7u9r19t5uv