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

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Write the CSS

My class CSS is not being applied. I make sure I have my "." in place when writing it in my CSS file.

My class CSS is not being applied. I make sure I have my "." in place when writing it in my CSS file.

------HTML------- <h2 class="section title">Summary of Qualifications</h2>

------CSS------ .section-title { text-transform: uppercase; }

I see my problem and it is now fixed. Sorry! ------HTML------- <h2 class="section-title">Summary of Qualifications</h2>

1 Answer

Shay Paustovsky
Shay Paustovsky
969 Points

Hi Katie,

There's a (' - ') between section and title which indicates that they are 2 separate classes. but in the .CSS you've written it like it's one class. instead of:

.section-title {
text-transform: uppercase;
}

like this

.section {
text-transform: uppercase;
}
.title {
text-transform: uppercase;
}

OR IT'S SIMPLY A MISSING (' - ') between class values. if a class attribute has 2 or more values not separated by commas it means this element has multiple classes and can be referred in the CSS in each of those classes.

Hope this has helped you, HAPPY CODING

Shay