Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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;
}