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 The Selectors Solution

Jong Kim
Jong Kim
6,145 Points

How come unordered list in <nav> doesn't get affect when you just do ul li {} }

How come it only affect in unordered list in <body> but not in unordered list in <nav>? (e.g. ul li {})

p.s this is first solution question in this video.

2 Answers

Steven Parker
Steven Parker
231,275 Points

A CSS rule with "ul li" as a selector should affect every unordered list on the page, unless there was also some more specific CSS that counteracted it.

You could make a snapshot of your workspace and post the link to it here for a demonstration if you're seeing something else.

Matthew Netherton
Matthew Netherton
2,819 Points

I've got the same question. The UL nested inside the <nav> isn't responding to the instructor's CSS selector changing color to lightcoral. What gives?

Steven Parker
Steven Parker
231,275 Points

It sounds like a similar issue, but not exactly the same. Please start a new fresh question where you can include your own code and a link to the page.