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

Jason Lynn
Jason Lynn
2,051 Points

Padding problem in code challenge.

I am getting an error saying the top padding must be set to 15 pixels. I've gone through a few times and cant figure out where I'm going wrong.

Here is my code:

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

1 Answer

Hi Jason,

In task 4 it switches to links inside the nav element. The font-weight and padding should be applied to links within the nav element and not the list items.

Jason Lynn
Jason Lynn
2,051 Points

Ooops. Dumb mistake. Thanks so much!