I'm having some odd trouble with Lesson 18 (CSS Selectors). I follow the directions to change the link color for "a:first-child" and "a:nth-child(3)", but the link color for "a:nth-child(3)" doesn't change to #FFC125 in the preview screen. All the links change to the #CDBE70 color, not just the first link. This is index.html with paragraph tags. Yet, when I click Save and Submit Code, I get a message that says "Congratulations, you've finished this section!"

If I remove the paragraph tags, only the first link is color #CDBE70. The other two links are the default color. If I click Save and Submit, I get a message that I haven't changed the "a:nth-child(3)" link color.

If I change #FFC125 to a different color (if I just specify as "red", for example), I still have trouble with the link color. That is, it is color #CDBE70 if I use paragraph tags in my html; it is the default color if I don't use paragraph tags.

here is the problem, all your links/anchor (<a></a>) are all first children of its parent paragraph (<p></p>). Now we are going outside of the scope of this exercise. If you think about, the paragraph are first child, second child and third child of body, so you could do:

p:first-child {}
p:nth-child(3){}

now, the problem is that links won't inherit much from parent, but we can just specify we want the link inside the paragraph:

p:first-child a {}
p:nth-child(3) a {}

so what we did here is: we use the paragraphs for first and third child (since the links in the paragraph are all first child of paragraph, so we can't use nth-child on the links to tell them apart). and then we specified we want the links inside this paragraphs, make sense?

The pop up reminds me to Be kind to your fellow community members. "won't work" or "did you forget something" seems a whole lot kinder then 'just sucks'. Actually my code did have the (3) in it. I only forgot to type it in when I replied, sorry.

That exhortation aside; I have got it to work just the way lesson 18 says it wants, but I still get the OOPs message"Oops, try again. Did you remember to set your first to the color #CDBE70?"

I have the code just as above without the colon, and I have all colors the same. This happened to me in a previous lesson, I hit submit code and save, and it passed me. I just want to make sure the code is correct, and there is some other reason that the colors are not different.

without colon it shouldn't work, without semi-colon it is fine for a single property + value, but i still recommend the semi-colon, if you decide to add more property's, and you forgot the semi-colon, nasty bug to fix

I meant as the previous poster had a colon after the "first-child", I did not have that, but have the same problem. Even thought the code did not make the colors different, the program accepted that the coding was correct. Is that due to the computer not having the slight shading difference in the colors?