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 Selectors Going Further with Attribute Selectors and Pseudo-Classes :first-child and :last-child Challenge

Border Settings in CSS Selectors tutorial

What's wrong with this? Somebody tell me please :) .main-nav { li:first-child { border: none; } } It's driving me crazy because the test keeps telling me that I need to set my border settings to none, and I believe I have.

2 Answers

Erwin Meesters
Erwin Meesters
15,088 Points

You used to many curly braces in your css: To target the first list-item in .main-nav you have to write it like this:

.main-nav li:first-child {

}
Camilla Holst
Camilla Holst
8,876 Points

have you tried .main-nav li:first-child { without the extra set of braces? Or just removing the border property completely?