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 trialAlexander Duria
738 PointsWhen trying to set the padding of the links in the nav element, what is the proper formatting?
I cannot figure out the proper code to this last section of the code challenge.
What I have is;
nav li { padding: 15px 10px 15px 10px; }
and am getting an error message "Bummer, the top padding needs to be 15px".
2 Answers
Andrew Hansen
Courses Plus Student 6,454 PointsYou could try explicitly stating:
padding-top: 15px;
Alexander Duria
738 PointsWow don't I feel dumb now, can't believe i missed that. Thanks for your help!!
Alexander Duria
738 PointsAlexander Duria
738 PointsI have tried specifically to set the padding for each specific side, still getting the same error message.
Andrew Hansen
Courses Plus Student 6,454 PointsAndrew Hansen
Courses Plus Student 6,454 PointsSo you are supposed to pad the links of the nav element. Your rule doesn't specifically target the links (aka, anchor tags, a)