Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTaylor Martinez
iOS Development with Swift Techdegree Student 4,229 PointsUse a pseudo-class to select the even list items. Set the background color of the items to dodgerblue.
I am having trouble with the below. I am on task 3/4. But when I put in the correct code for task 3/4 it is saying now task #2 is wrong. Does anyone know what is going on with this? I have not changed the code at all from task 2 or task 3 and I am getting this error.
"Bummer: Are you setting the color of the last list item to azure
?"
/* Complete the challenge by writing CSS below */
li:first-child {color:white}
li:last-child{color:azure}
li:nth-child(even){
color: dodgerblue
}
3 Answers
KRIS NIKOLAISEN
54,971 PointsThe instructions for task 3 are to set the background color to dodgerblue. You set the color.
Gabriel Oarcas
18,100 PointsAgain, it has to be a background-color, instead of a color.
Jamie Reardon
Treehouse Project ReviewerYou have missing semi colons at the end of each CSS property in each CSS rule.
li:first-child {color: white;}
li:last-child {color: azure;}
li:nth-child(even) {color: dodgerblue;}
Taylor Martinez
iOS Development with Swift Techdegree Student 4,229 PointsThanks but that didn't work either..
Karl Russell Sumando Menil
Full Stack JavaScript Techdegree Student 4,004 Pointsli:first-child {color: white;}
li:last-child {color: azure;}
li:nth-child( even ) { background: dodgerblue; }
Taylor Martinez
iOS Development with Swift Techdegree Student 4,229 PointsTaylor Martinez
iOS Development with Swift Techdegree Student 4,229 PointsThank you!