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

CSS Help?

I am going through the Front End Web Development course and am currently on CSS Basics

I am on one of the Challenge Tasks, And am having some problems with descendant selectors.

It keeps saying "Bummer! Make sure you're using the 'color' property with the value 'slategrey'

I did that perfectly yet it is still saying that.

'''css .header span { font-size: 26px; }

.main-content p { font-weight: bold; }

.footer p { color: slategrey; }

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

I've looked at the challenge and I've found your problem

Your trying to target an element that has a class of .footer. But that's not what it's looking for.

footer p {
  color: slategray;
}

You're looking for a paragraph that's a child of a footer element.

As for the slategrey value I haven't tested for that but my attempt passed with the value of slategray rather than slategrey.

This should work for you :)

Ohhhhhh, that's it working now, thank you very much man.