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!
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

Sven Huff
Courses Plus Student 4,355 PointsCant 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

Nejc Vukovic
Full Stack JavaScript Techdegree Graduate 51,574 PointsHI,
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: }

Ayoub AIT IKEN
12,314 PointsHey you have to select the unorderlist and not the list items, according to what you wrote as question :
nav ul {
}

Sven Huff
Courses Plus Student 4,355 PointsThanks Ayoub.

Osvaldo Gouveia Meio-Dia
501 PointsThanks friends, so clear.
Sven Huff
Courses Plus Student 4,355 PointsSven Huff
Courses Plus Student 4,355 PointsThanks Nejc.