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 CSS Basics (2014) Basic Selectors Descendant Selectors

Unordered and ordered lists

Hey !

I don't understand why, when I apply the styles to the ol or ul, without me writing it, the list-style is set to none. I find this strange...

2 Answers

Máté Végh
Máté Végh
25,607 Points

Hi there,

It's because the text color is set to white. It disappears because the background is also white. (The links remains blue, because the ul li selector doesn't affect link elements.)

Christian Colella
Christian Colella
2,599 Points

Yea I was curious about why the links didn't turn white. It was only the bullet points that change to white which we couldn't see because the background is also white. You would have to do (ul li a) to change the link color.

geoffrey
geoffrey
28,736 Points

Are you sure you don't use a reset ?

No, i don't but actually you can check, the same thing happens in the video