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

Chris Sember
Chris Sember
2,371 Points

Why doesn't my course accept my border properties of none?

.main-nav:li:first-child { border: none; border-top-left-radius: 5px; border-top-right-radius: 5px; }

1 Answer

Tobias Helmrich
Tobias Helmrich
31,602 Points

Hey Chris,

I think the problem is that you're trying to select a pseudo-class called "li". If you want to select the first list item inside of the element with the main-nav class you should write it with a space instead of a colon between .main-nav and li like so:

.main-nav li:first-child { 
  border: none; 
  border-top-left-radius: 5px;  
  border-top-right-radius: 5px; 
}

I hope that helps! :)

Chris Sember
Chris Sember
2,371 Points

Ahhh that was it. Thank you sir!