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 How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

CSS code challenge

http://teamtreehouse.com/library/write-hexadecimal-colors

I am stuck at setting the color of the paragraph element to black in this code challenge. Help!

3 Answers

idan ben yair
idan ben yair
10,288 Points

Hi Kanav,

To set the color of the text in the paragraph to black your css should look like this:

P {
  color: black;
}

if you need the background to be black you will need to do this:

p {
  background-color: black;
}

Let me know if that helped :)

Thank You for the help!

Chema Castellanos
Chema Castellanos
3,984 Points

Just select the p element and set the color to #000 or #000000 which is the same, that code means black (zero amount of red, green and blue)

Thank You for your help!

idan ben yair
idan ben yair
10,288 Points

No problem Kanav! anytime :)