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

Extra 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; } }

remove 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

the 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

Awesome man thanks!

you are wellcome