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

Simon Blonér
Simon Blonér
4,772 Points

Temoving the margin on top of the li inside of the navigation and adding 10px, can't get methods from videos to work.

Here is my current method

nav li { margin: 0 10px 0 10px; }

According to the videos, this will target top, rigth, bottom, left.

Would be jolly glad for any aid!

1 Answer

Tom Bedford
Tom Bedford
15,645 Points

Hi Peter

The challenge asks:

Select the unordered list nested inside the nav element. Remove the margins on the top and bottom. Set the margins on the left and right to 10px.

The "unordered list", not the "list items" (li is for list items).

Good luck!

Simon Blonér
Simon Blonér
4,772 Points

Thx for the input, question solved with the info :)