Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Maybe its just me?

I am doing the challenges for the CSS basic structural pseudo classes and on the second challenge it keeps telling me that task 1 is no longer working.

Here is the link for the challenge. http://teamtreehouse.com/library/websites/css-foundations-2/selectors-reshoot/basic-structural-pseudoclasses-2

My code is as follows

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

Am I crazy? Or am I not seeing something

4 Answers

Guil Hernandez
Guil Hernandez
Treehouse Teacher

Hi Ted Moxon,

The code challenge asks for 2 specific CSS rules. You'll need to keep the :first-child rule from the previous task, then add the :last-child rule.

Kevin Jennings
Kevin Jennings
3,630 Points

Looking at the second challenge, it's only asking you to set the border to none. Your code does a few other things (i.e. sets color and background-color) besides setting the border to none. Try removing those extra options. I applied the code below for the second challenge and it accepted it:

li:last-child { border:none; }

I have tried that. I keep getting the error "Oops looks like task 1 is no longer passing. No matter what I do.

OOOHHHH!! Ok I misread the question then. I thought I was supposed to change it for last-child.

Thank you.