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

Kathy Epperson
Kathy Epperson
1,884 Points

Help: target the paragraph that is a descendant of the main-content class. Add a font-weight property and set the value

I put in CSS: main-content p { font-weight: bold; }

1 Answer

Mike Schaming
Mike Schaming
13,925 Points

Hi Kathy! You are very close, but you are missing a very important piece of syntax. In this example, "main-content" is the class name. To target classes in CSS, we need to use "." ex. .main-content p {}

Good luck!

Kathy Epperson
Kathy Epperson
1,884 Points

Thanks, Mike! I thought I'd tried that already, but went back and tried again :)