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 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