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

Altovise Curtis-Mateen
PLUS
Altovise Curtis-Mateen
Courses Plus Student 10,660 Points

Missed opportunity [Descendent Selectors]...

Around the 2:40 timestamp in the video when Guil begins to show how the descendent selectors work on the unordered list, he misses the opportunity to show how they work on links. For beginners (which I am not), the statements for the ul li {} selector might be confusing. Here's why: the links never changed color from blue to white with the following:

ul li { background-color: tomato; color: white; }

The correct descendent selector statements would change the color of the links to white are as follows:

ul li a { color: white; }

OR

a { color: white; }

1 Answer

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Thanks for the suggestion, Altovise Curtis-Mateen. I'm releasing a new course soon entirely on intermediate to advanced selectors. I'll keep that in mind for the "Basic Selectors Review" portion of the course.

Also, in the Inheritance video, I briefly mention that links do not inherit colors from their parent elements.

Altovise Curtis-Mateen
Altovise Curtis-Mateen
Courses Plus Student 10,660 Points

Awesome Guil! You are a wonderful instructor and I enjoy all of your videos. Thanks for the comment.