Lesson 18 : the code gives wrong results



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;


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)


can you please post your html code here?


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