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 trial

CSS

Use 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

The instructions for task 3 are to set the background color to dodgerblue. You set the color.

Thank you!

Again, it has to be a background-color, instead of a color.

Jamie Reardon
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jamie Reardon
Treehouse Project Reviewer

You 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;}

Thanks but that didn't work either..

li:first-child {color: white;}

li:last-child {color: azure;}

li:nth-child( even ) { background: dodgerblue; }