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

HTML How to Make a Website Responsive Web Design and Testing Adjust the Profile Page and Header

Eugen-Ionut Jercan
Eugen-Ionut Jercan
9,996 Points

Why the navigation it's not being displayed on the same row for a window 680px width?

When I rezise the window at 680px width in Chrome, Firefox, and Opera, the navigation it's not being displayed properly - the Contact page appears below the Portfolio and About pages. Why's that? In Safari it's being displayed properly.

Holt Hunter
Holt Hunter
4,629 Points

Could you show us what is in your

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

in your responsive.css?

We would have to look at your code as you've written it in order to determine where the bug is. Copy-pasta it here please if you can.

Wayne Priestley
Wayne Priestley
19,579 Points

Here is a link to explain how to use Markdown to post your code How to post code

If you look at the bottom of the box when your typing a reply you will see Markdown Cheatsheet that will also explain how to post your code

Arnoldo Martin Gonzalez
Arnoldo Martin Gonzalez
2,436 Points

Try this, in your responsive.css, in the NAV tag, increase its width from 45% to 50% or more. That would most likely fix the problem.

@.@ cheers!

2 Answers

Eugen-Ionut Jercan
Eugen-Ionut Jercan
9,996 Points

This is the code. Thanks!

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