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

Unable to change color

Hi,

While using the following syntax 'color' didn;'t highlight as it did in video and didn't work either.

<style>

h1 { color: blue; }

</style> <h1>Sahiti</h1>

Sreng Hong
Sreng Hong
15,083 Points

Hi Sahiti, can you show me your code?

Sreng Hong
Sreng Hong
15,083 Points

As you did, it's right. However, you might made some mistake that you didn't notice.

h1 {
  color: blue;
}

3 Answers

Sreng,

Thanks for the quick reply. I did use the same code while doing the task and it worked.. IGuess there is a pronlem with my workspace.

This is the exact code I used. <style>

h1 { color: blue; }

</style> <h1>Sahiti</h1>

'Blue' is highlighted and also shows the color when I hover my cursor over it. 'Color' is't highlighted though.

Sreng Hong
Sreng Hong
15,083 Points

You're better checked your code again then!!!

do you want to change the color of the h1 on hover??