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

I am having trouble Setting the color of paragraphs to black using a hexadecimal value. What should this look like?

I currently have it set to p {color: 111111;} I received the following error. Double check that you've styled paragraph (p) elements to be black with a hexidecimal value. What is incorrect?

3 Answers

You have two issues:

  1. The correct hex value for is #000000.
  2. You forget the '#'

This website is a good reference for hex values.

Also if you have color values like #33333 , #000000, #cccccc , you can also use them with the shorthand #333, #000 and #ccc for example. In a big css file with many values, you save some space in the final file.

got it thank you very much!