Nth child


#1

p:first-child{
font-family:Cursive;
color:red;
}
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;
}



Replace this line with your code.


#2

what am I doing wrong?


#3

Instead of "ntn-child" try "nth-child" :slight_smile:


#4

simple mistake! thank you


#5

A post was split to a new topic: Nth child error


Nth child error
#7

2 posts were split to a new topic: Nth child need help