Lesson 17: Help please!


#1

p:first-child {
font-family: cursive;
}
p:ntn-child(2) {
font-family: Tahoma;
}
p:ntn-child(3) {
color: #CC0000;
}
p:ntn-child(4) {
background-color: #00FF00;
}
p:ntn-child(5) {
font-size: 22px;
}

what's wrong with my code?


#2

it is nth-child not ntn-child (the third letter is a h, not a n)


#3

thanks, dunno why i keep put n instead of h ...


#4

Hi!
For the 2nd child this is :

p:2nd-child {what:how;} or p:2th-child {what:how;} ?

Idem for the 3rd : 3rd or 3th ?

Fort 4th ans 5th and following chidren no question.


#5

no, it is p:nth-child(x), x being the number (2,3,4,5 etc) where did you get the notion of 2nd-child? 2nd-child is not a css pseudo class


#6

OK sorry @stetim94
I would not forgot Using the right syntaxe OK

p:2nd-child: {selector:value;}

I really need to have a good big rest before trying to code !

Thanks
Detchen !


#7

have you figured it out? P:2nd-child: is wrong in so many ways


#8

I received this syntaxe in the course "9. Selector CSS" exercice 17 or 16 or 15, I dont remember

May be or surely I make a milkshake lol

So I better go to sleep... And read again after rest and make again and again theses exercices.