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 trialUnsubscribed User
5,632 PointsI keep getting a CSS error on "Styling Web Pages and Navigation", Challenge task 4 of 4?
I keep getting an error that the top padding should be 15px on list elements nested in the nav, this is my css:
nav li { display: inline-block; font-weight: 800; padding: 15px 10px 15px 10px; }
I've also tried:
nav li { display: inline-block; font-weight: 800; padding: 15px 10px; }
2 Answers
Unsubscribed User
5,632 PointsThe instructions asked to put in to the nav links, I thought that meant nav li {} but it meant nav li a {} :)
idan ben yair
10,288 PointsHi try:
nav li { display: inline-block; font-weight: 800; padding-top: 15px; }
Unsubscribed User
5,632 PointsWasn't the answer, but thanks for helping!