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 trialAurelian Spodarec
10,801 PointsHow is this not passing?
How is it that this challenge is not passing?
Next, create a new pseudo-class selector that targets the last-child li in .main-nav. Give it a top-right and bottom-right border-radius of 5px.
Oops! It looks like Task 1 is no longer passing.
/* Complete the challenge by writing CSS below */
.main-nav li:first-child {
border-radius: none;
}
.main-nav li:last-child{
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
1 Answer
robbertdekock
13,390 PointsHi Aurelian,
I think you've removed a part of your code. The right code should be something like this.
.main-nav li:first-child {
border: none;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
.main-nav li:last-child {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
Hope this helps...
Aurelian Spodarec
10,801 PointsAurelian Spodarec
10,801 PointsWell, I tried that too! I had exactly the same code as you have as well. Nothing worked. I might have made some mistake, or i just bugged the challenge. Thanks, worked now lol