I need help on 17 Nth Child on CSS


#1

This is the code i have type in if anyone can do this please show yours thank you :wink:




p:first-child {
color: red;
font-family: cursive;

p:nth-we'renot(2) {
font-family:Tahoma;
}

p:nth-not(3) {
color:#CC0000;
}

p:not(4) {
background:#00FF00;
}

p:not(5) {
font-size: 22px;
}


#2

You need a closing curly bracket there.


#3

you don't see more problems?

@betaninja90887, th pseudo class you need is nth-child. I see a lot of other pseudo classes which are not nth-child


#4

yeah i figured that one out too lol
thanks by the way MATE.
p:first-child { font-family: cursive;
}

p:nth-child(2)font-family: Tahoma;
}

no comma between the brackets and the font-family


#5

after p:nth-child(2) there should be a opening curly bracket ({)


#7

@coreace68748 You forgot to close your p:nth-child(4) CSS rule.
:not() is different from :nth-child()

Next time, please create a new topic rather than using someone else's. Thanks!