Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Customizing Colors and Fonts Use Color in CSS

Changing the colour of the anchors in nav.

I have added the code as Nick does to color the anchor elements in nav and my elements remain green. Can someone help point out what I have done wrong? My code looks like this:

nav { background: #599a68; }

nav a, nav a:visited { color: #fff: }

Thanks! chris

1 Answer

Hi chris,

On the value for color you have a colon...

Just needs changing to a semi colon that's all...

Hope this helps!

Craig

Thanks Craig. More proof that a lack of coffee is detrimental to one's eyesight. Appreciate the very quick response.

No problem, on that note id better stick the kettle on ......