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
Benito Cano
390 PointsThe class is still not working for me.
The class is still not working for me.
1 Answer
Justin Olson
13,792 PointsGood day!
For a class to work, you need two parts:
You need to add the class tag and name of class to an element.
<h1 class="text-color">HI!!!</h1>
And then you need to place that class within the CSS like so (the class is indicated by the '.' period before the name of the actual class).
.text-color {
color: blue;
}
And there is actually a third part. Making sure your CSS is linked to the html sheet. Below is the link of a styles.css file located within a css folder.
<link href="css/styles.css" rel="stylesheet">
I hope this helps out. If more is needed, please provide more detail.