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

HTML

Cannot set the padding in the challenge question of stage 6 HTML.

I keep getting a bummer response for the challenge to set the padding in the nav links to 15 px for top and bottom, 10px for left and right. The response that I get is: Bummer! The top padding for nav links should be 15px.

Below is what I have set up: nav ul { Float: left; margin: 0 10px 0 10px; padding: 0 0 0 0; }

nav li{ font-weight: 800; padding: 15px 10px 15px 10px; display: inline-block; }

Where is my error?

Thank you once again.

2 Answers

I'm not sure, but here are a couple different things to try...

Maybe they mean for you to add padding to the link itself rather than the list item. So apply style to anchor (a) instead of list item (li);

Or maybe they want you to use shorthand (when top/bottom are equal and left/right are equal, like this:

nav li {
  padding: 15px 10px;
}

Thank you, it was the anchor in the nav element. This is going to take some time to get used to doing.