Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Select the class 'intro' and set its font weight to bold.

.intro {font-weight: bold;}

<p class = "intro">

yet.. it is not working...

the error message is:

"Check the class selector in your CSS. Make sure font-weight is set to bold."

This is challenge 6 of 6 web development CSS.

4 Answers

Gareth Redfern
Gareth Redfern
36,217 Points

@warrenpett a class always uses a period and and id uses the # :)

Gareth Redfern
Gareth Redfern
36,217 Points

Did you try it with spaces { font-weight: bold; } i know the editor can be a bit picky sometimes.

Warren Pett
Warren Pett
2,169 Points

is it .intro or #intro? always get confused. apart from that it looks right and I'm not sure if spaces matter?

James Barnett
James Barnett
39,199 Points

> I'm not sure if spaces matter

Spaces matter in selectors but not in declarations.

Warren Pett
Warren Pett
2,169 Points

I remember now :) that's right. well I got my question answered!