CSS Selectors


#1

Below is my code. I have checked it many times and searched the forums. No luck. I keep getting an error message asking me if I've set the color of a:link to #008B45, which I have. Help, please.

a:link: {
text-decoration: none;
color: #008B45;
}
a:hover: {
color: #00FF00;
}
a: visited: {
color: #EE9A00;
}


#2

you have a colon after link which shouldn't be there. a colon between the css selector (a) and the pseudo-class (link, hover, visited) yes, but not a colon after the pseudo class

Also, if you want hover to work on visited links place it after visited


#4

@mabviro, they should be able to deduce that from my answer, yours just contain the code without explanation, which is not according to the guidelines


#5

Thank you so much for the help!


#6