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

Sven Huff
PLUS
Sven Huff
Courses Plus Student 4,355 Points

Cant change nav element in css.

I should "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." But in the actual css code is no nav element. So I added one and used the margin property. Like this:

nav li { margin: 0, 10px: }

But it does not work.

Can anybody tell me what to do?

Thanks, Sven

3 Answers

HI,

You have to select -> "nav ul" .

"li" are list items. You have to style the whole list.

And there is no comma in the declaration.

nav ul { margin: 0 10px: }

Hey you have to select the unorderlist and not the list items, according to what you wrote as question :

nav ul {

}

Thanks friends, so clear.