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

Chelsea Hammond
Chelsea Hammond
582 Points

Why is my navigation staying on the top, rather than the bottom of my header?

1 Answer

If you look at your main.css, your margin in your nav looks like this:

nav {
margin: 20 px 0 0;
(some other code here)
}

If you look at that, the space between the "20" and the "px" means the browser will render it meaningless. Even if you remove the space, it will still not work. That is because of there only being 3 parameters. You need to add another zero. So, your improved code looks like this

nav {
margin: 20px 0 0 0;
(some other code here)
}

You can also increase the number.