17.Nth-child


#1


https://www.codecademy.com/courses/web-beginner-en-WF0CF/3/4?curriculum_id=50579fb998b470000202dc8b

Oops, try again. Did you remember to make the third paragraph's color #CC0000?
The code looks right to me. Maybe I'm exhausted and missing something.


/*Add your CSS below!*/
p:first-child{
    font-family: cursive;
}
p:nth-child(2) {
    font-family: Tahoma;
}
p:nth-child(3) {
    color: #CCOOOO;
}
p:nth-child(4) {
    background-color #00FF00;
}
p:nth-child(5){
    font-size: 22px;
}


#2

#CC0000 hex-color should contains zero's (the number) not the letter o

you also miss a colon after background-color


#3

Ha yeah, exhausted. Thanks.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.