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

Jamie Draper
Jamie Draper
4,126 Points

Stage 6 of Front End Web Dev, code challenge

Run into some confusion. The code challenge is: Select the links inside the nav element and set their font weight to 800. Then, set padding on the top and bottom to 15 pixels. Set the padding on the left and right to 10 pixels.

My input-

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

It comes back as incorrect. Would be very grateful if someone could shine some light on this.

Jamie Draper
Jamie Draper
4,126 Points

Never mind! Figured it out :)

1 Answer

Richard Duncan
Richard Duncan
5,568 Points

When I did this it was expecting all the arguments for padding shorthand to be set.

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