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

Yuki W
Yuki W
3,031 Points

I cant find out the answer of this task. Please Help!

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.

nav{ margin: 0px 10px; }

I added this,but its not seems correct.

2 Answers

Anton Bozhinov
Anton Bozhinov
12,381 Points

You probably should use a decendant selector to select the ul inside the nav element. Try : nav ul {margin: 0 10px};

Hope that helps! Cheers, Anton

Yuki W
Yuki W
3,031 Points

Thank you sooo much! It was done. :)