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.

Mirissage Fernando
Courses Plus Student 309 PointsHelp stuck in CSS Selectors course > code challenger stage 2 ":first-child and :last-child Challenge"
Create a pseudo-class selector that targets the first-child li in .main-nav. Remove all border styles by setting border to none. Then, set the top-left and bottom-left border-radius to 5px.
my answer :
.main-nav > li : first-child { border: none; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
see the screenshot http://www.clipular.com/c/5568161795538944.png?k=hIUuXOxYd0RbzYi5kv7vH5cILDM

Mirissage Fernando
Courses Plus Student 309 Pointsyes it worked & thanks
10 Answers

Ira Salem
10,331 PointsNo problem. Glad I could help.
Henrik Hansen
23,176 Points.main-nav > li:first-child { }
I think spaces matter in selectors.

Ira Salem
10,331 PointsOh! Took me a while to see it. I noticed in between the ".main-nav" and the "li" you no longer have the greater than symbol. Instead you have a colon. It says ".main-nav:li:first-child" when it should say ".main-nav>li:first-child".
That's the only thing that I can see wrong with this so give it a try and let me know if it works ok!

Tom Evans
3,814 Pointsahhh thank you it worked!

Ira Salem
10,331 Points@tom evans
No problem.

Chris Paraoan
4,481 PointsYou don't need to put a child selector.... here is what I put:
.main-nav li:first-child { border: none; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
And it worked fine. Hope this helps anyone who has trouble with this..

Unsubscribed User
4,513 Pointsli : first-child { border: none; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
This works guys

Mirissage Fernando
Courses Plus Student 309 PointsAWESOME THANKS GUYS

Tom Evans
3,814 Pointshi guys wondering if you could help me with this one...
.main-nav:li:first-child { border: none; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
so i put this in and it says Bummer! Make you're setting all border properties to 'none'.
i don't understand

channonhall
12,247 PointsHey the problem is at .main-nav:li: -----------------------------------------^
remove the : infront of the li

MUZ140587 Matifadza Foyo
9,182 Pointsremove : between your nav and li

ellie adam
26,376 Points.main-nav li:first-child { border: none; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }

Ary de Oliveira
28,298 PointsI did not understand, about /* ( in .main-nav ) */ it was no clear to me?
Ira Salem
10,331 PointsIra Salem
10,331 PointsTry getting rid of the space between "li : first-child". Instead it should read "li:first-child".
Let me know if this works for you.