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 CSS Foundations Selectors Basic Structural Pseudo-Classes

Next, target the li that is the last child of the ul. Set its border to none.

li:last-child { border: none; }

isnt working

4 Answers

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

The only other problem that I could think of is you have deleted the code from part one:

This should be the whole task:

li:first-child { 
color: white; 
}
li:first-child { 
background-color: black; 
}
li:last-child { 
border: none; 
}

Hope you get it done now

I had this same thought. Can you copy and paste your CSS here?

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Adam, I just did the challenge,

It worked fine for me, the correct answer is:

li:last-child { border: none; }

The code that worked for me is:

ul li:last-child { border: none; }

Good luck.

the problem is not your code, the problem is that you cant delete the code from the first task.