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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

css color type

Hi, I am taking a challenge and trying to change the color of the type in css. but wont go from blue to green. what am I doing wrong? thanks,cathie

Hi cathie,

Post your code so we can see where the mistake might be.

2 Answers

There's not a question that asks you to change the a color from blue to green. In the color question you simply use the color property (not background-color) to set the text color to green.

h1{
 color: green;
}

Pretty straightforward. color is used for elements that involve text and you can use a few different methods to change the font's color to green such as hex (ex. #FFF) or rgb, hsl and so on..

Daniel Temiagin
Daniel Temiagin
5,741 Points

What type are you taking about? Paste your code that will help to determine where the error might be.....