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

Adam Maley
Adam Maley
5,946 Points

The color of my navigation (except page currently on) are the same color as the background #6ab47b.

So when I am moused over the "Portfolio Contact About" I can see them and when I am on that page I can see. However when not they are the same color as the heading background #6ab47b....when it's supposed to be #fff(white). I tried switching the nav a { css color but it changes all of my phone links to white. How do I change the colors of them while they are untouched on the page.

Adam Maley
Adam Maley
5,946 Points

/* nav link */ nav a, nav a:vistited { color: #fff; }

Basically, this isn't working ever since I did this
nav { background: none; float: right; font-size: 1.125em; margin-right: 5%; text-align: right; width: 45%;

I'm guessing because the nav visited code is not right?

2 Answers

rydavim
rydavim
18,814 Points

If you copy-pasted that code snippet from your code, it looks like you have a typo.

/* nav link */ 
nav a, nav a:vistited { color: #fff; } /* should be 'visited' - you've just got two t's */

My guess is that will fix it, but if not we'll need to see more of your code, such as a workspace snapshot. Happy coding!

Adam Maley
Adam Maley
5,946 Points

hah woot! Thanks! Yeah i looked at it, I could not find the typo, I knew it was there though.

rydavim
rydavim
18,814 Points

Glad it worked! It's much easier to spot typos in code written by someone else. :smile: