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 CSS Basics (2014) Understanding Values and Units Rem Units

pseudo selector a:visited not working well

Whenever I put the history link pseudo selector a:visited {color: value} it works, however, when I click on one link all links in the page change colour. Why is this?

1 Answer

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,671 Points

Obvious question but have you ever clicked on any of those links in testing? The browser will "remember" that you have indeed clicked on those and will display it based on your styling.

Can you link to your project so we can see what is going on?

Thanks, Rich, you can check it out here https://prod.liveshare.vsengsaas.visualstudio.com/join?38CDBDF2FFC5AC6F6F22296E9A981FA6D881. When I click on one link for testing, they all change rather than just the one link I have clicked.