This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by sunshinedeluxe
over 8 years

18/23 problem

I inserted the following CSS

a:hover { text-decoration: none; }

a:first-child { color: #cdbe70; }

a:nth-child(3) { color: #ffc125; }

Somehow all my links change the color instead of just the first one. The third doesn’t change the color at all. Am I missing something? Website says the code is correct…

Answer 55cffd809113cb964e00074a

3 votes

Permalink

/Add your CSS below!/ a:hover{ text-decoration:none; } a:first-child{ color:#CDBE70; } a:nth-child(3){ color:#FFC125; } is the right code.remember this site isn’t bug free.sometimes when you enter a code that will change the color of an object.the site preview screen will not update for that line of code.The only possible solution is to refresh the page.Please note this will not always work anyway don’t worry the code checker is almost always right.

points
Submitted by Epic2Snipers
over 8 years

Answer 55c75b05e39efef4400001bb

0 votes

Permalink

Have the same problem here and no idea… If I switch to p:nth-child(5) f.e. it works fine. Something doesn’t collaborate with the a selector I guess?

points
Submitted by LeeChuck
over 8 years

Answer 55cb194c9113cb86c3000678

0 votes

Permalink

same here…Code doesn’t work but still allows me to pass the level with no given error..

points
Submitted by Omer
over 8 years

Answer 55cbc60be39efece4f000472

0 votes

Permalink

This Sites Tutorial System Seems to be case sensitive so make sure you type the hex code(color)exactly as displayed including capitalization.

points
Submitted by Epic2Snipers
over 8 years

Answer 55ce87f5d3292fb4010004df

0 votes

Permalink

I am having the same problem too, I tried what Epic2Snipers had said, but it still doesn’t work at all. I have checked my code, and it says that I am free to move on, but the problem is that the code does not change color at all. It would be great if someone would help.Thank You!

points
Submitted by tapzop
over 8 years

Answer 55cf6f37e39efe363b000127

0 votes

Permalink

The third link change when i write:

a:nth-child(5) {
    color: #00C125;
}

I don’t understand why i have to write 5, but it works.

points
Submitted by maxmax37
over 8 years

Answer 55fbed089113cbb35400040f

0 votes

Permalink

my code didn’t work too:

a:hover{ text-decoration:none; }

a:first_child{ color:#CDBE70; }

a:nth_child(3){ color:#FFC125; }

But I copied code from “Epic2Snipers” and everything works correctly, without refreshing.

points
Submitted by Tom Atom
over 8 years