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) Basic Selectors Pseudo-Classes

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

All my links are blue and won't change color no matter what I do.

I am using my code in Notepad++ and although it's identical to Guil's, my links won't turn orange. This is the code:

a:link { color: orange; }

a:visited { color: lightblue; }

All links are blue and they won't change color no matter what I do. I tried Developers Tool and I couldn't understand what's the problem.

Here's how my code looks like.

http://jsbin.com/pucuvuyaka/1/edit?html,css,output

3 Answers

Matt Coston
Matt Coston
18,425 Points

This works with my Chrome browser. What browser are you using?

Matt Coston
Matt Coston
18,425 Points

Have you clicked your links already? Your browser may have kept a cache of the site already and shows all the links as visited. I like to try to use /* mouse over link */ a:hover { color: #FF00FF; } to test these things as well.

Arikaturika Tumojenko
Arikaturika Tumojenko
8,897 Points

I found out what the problem was. It's the fact that all links are null links (with the "href="#" form). I changed them to real links and evertyhing works fine now. Thx :).

thanks for your answers, I've met the same problem and I got stuck, now I know why ;-)

all my links were orange....i clicked on ONE of them and they ALL turned light blue