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

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
STAFF
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.