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

zackcoulter
zackcoulter
1,495 Points

Pixels, wat do?

Says "Needs top padding to be 15px." I thought the syntax starts from the top and then goes clockwise.

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

1 Answer

The styles for task 4 should be applied to links inside the nav element.

zackcoulter
zackcoulter
1,495 Points

My nav element isn't right? The brackets are closing the main syntax, i don't understand what you mean.

You put the new styles in your nav li rule. that one is targeting the list items inside your nav.

they wanted you to put those styles in a new rule that targets links inside the nav.

nav a {
font-weight: 800;
padding: 15px 10px;
}