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 How to Make a Website Styling Web Pages and Navigation Create a Horizontal List of Links

When 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

You could try explicitly stating:

padding-top: 15px;

I have tried specifically to set the padding for each specific side, still getting the same error message.

So you are supposed to pad the links of the nav element. Your rule doesn't specifically target the links (aka, anchor tags, a)

Wow don't I feel dumb now, can't believe i missed that. Thanks for your help!!