Lesson 18 : the code gives wrong results


#1

https://www.codecademy.com/en/courses/web-beginner-en-WF0CF/3/5?curriculum_id=50579fb998b470000202dc8b#

i wrote a right code and submitted correctly although the result of the code is not right .
i gave the third child a color of #FFC125 .. but in fact the second child ( second link ) is the one whose the color was changed.

a:hover {
    text-decoration : none;
}
a:first-child {
    color : #CDBE70;
}
a:nth-child(3) {
    color: #FFC125;
}

#2

Your CSS code is fine.

1.Check if your css file is connected (linked) to html file.
2.If 1 is not the case then switch to different browser(Firefox/IE)


#3

can you please post your html code here?


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.