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 How to Make a Website Customizing Colors and Fonts Organize CSS with Comments

the nav color did not change to white?

i feel that i have some thing wrong with html <nev> <ul> <li><a href="index.html" class="selected">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nev>

because the dots before the Portfolio, about, and contact did not disappear and when i apply the code to change the color to white did not work...

header { background: #6ab47b; border-color: #599a68; }

h1, h2 { color: #fff; }

nav { background: #599a68; } nav a, nav a: visited { color: #fff; }

need help

This is because you don't have the unordered list wrapped in a nav element yet. If you take a look back at your code a </nev> which I assume is supposed to be a </nav>. Fix the nav element and see if it works.

it's works now. thank you

2 Answers

Kelly von Borstel
Kelly von Borstel
28,880 Points

It looks like you mistyped nav in the html. Should be nav instead of nev.

it's works now. thank you

I am going to assume that you have an opening <nav> tag that you just didn't put here. You also spelled the closing </nav> tag wrong.

It should work if you wrap the <ul> in the <nav> tags.

<nav>
     <ul>
         <li></li>
         <li></li>
         <li></li>
     </ul>
</nav>

It is really easy to miss a closing tag, misspell something, forget a colon, etc... Be sure to go back through and double and triple check the obvious things. I have stared at code for quite sometime and not seen the simplest things that were causing the error