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

Issues with header

In stage 7 of web design I'm making changes to the header however on the right hand side it's cut off and displaying to different types of green

Caroline Hagan
Caroline Hagan
12,612 Points

Hi jose sias could you possibly post up a screen capture of the issue or a [Codepen](codepen.io) of your code so we can help troubleshoot

7 Answers

Yes I can it will have to be in a couple hours I'm currently on the road

Caroline Hagan
Caroline Hagan
12,612 Points

That's fine as I'm in bed lol will take a look in the morning :-)

Cool thanks

@media screen and (min-width: 480px) {

  /**********************************
  Two Column Layout
  ***********************************/  

  #primary { 
    width: 50%;
    float: left;
  }

  #secondary {
    width: 40%;
    float: right;
  }
}



/**********************************
PAGE: PORTFOLIO
***********************************/

#gallery li {
  width: 28.3333%;
}

#gallery li:nth-child(4n) {
  clear: left;
}


/**********************************
PAGE: About
***********************************/


.profile-photo {
  float: left;
  margin: 0 5% 80px 0;
}

@media screen and (min-width: 660px) {

  /**********************************
  Header  
  ***********************************/

  nav  ul {
    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.825;
    margin-bottom: 20px;
  }

  header {
    border-bottom: 5px solid #599a68;
    margin-bottom: 60px;
  }
}

`
Caroline Hagan
Caroline Hagan
12,612 Points

Could you post the HTML part of it as well please jose sias

Yes give a second

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Jose Sias | Designer</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/responsive.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Jose Sias</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html" class="selected">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>
        <img src="img/jose.jpg" alt="Photograph of Jose Sias" class="profile-photo">
        <h3>About</h3>
        <p>Hi, I'm Jose Sias! This is my design profolio where i share all of my favorite work. When I'm not designing things, I enjoy exercising, playing video games, drinking good coffee, and more.</p>
        <p>If you'd like to follow me on Twitter, my username is <a href="http://twitter.com/sias11913">@sias11913</a>.</p>
      </section>
      <footer>
        <a href="http://twitter.com/sias11913"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="http://facebook.com/jose.sias"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2014 Nick Pettit.</p>
      </footer>
    </div>
  </body>
</html>

`
Caroline Hagan
Caroline Hagan
12,612 Points

Here is a Codepen with the code you provided : http://codepen.io/anon/pen/xvEeK/ Looking in the CSS column, line 75, you have a bottom border, this is creating the green strip

When you say "however on the right hand side it's cut off", which part do you mean?

thanks caroline i fixed that issue the only one im trying to figure out is on the top when i click the about page there is a space between the header and the top of the page how do i adjust that?