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 trialAdam Yuen
Courses Plus Student 1,043 PointsNext, 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
Courses Plus Student 11,734 PointsThe 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
John Steer-Fowler
Courses Plus Student 11,734 PointsAdam, I just did the challenge,
It worked fine for me, the correct answer is:
li:last-child { border: none; }
Joseph Wasden
20,407 PointsThe code that worked for me is:
ul li:last-child { border: none; }
Good luck.
Daniel Muvdi
5,262 Pointsthe problem is not your code, the problem is that you cant delete the code from the first task.
Joseph Wasden
20,407 PointsJoseph Wasden
20,407 PointsI had this same thought. Can you copy and paste your CSS here?