Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

cdatubo
cdatubo
550 Points

CSS Challenge task 2

When I asked to set the paragraph color to black, my instinct was to use this code: p {color: #111}

What's incorrect about this? From what I've seen online, that's correct. Kind of confused...

Thanks for the help!

3 Answers

Logan R
Logan R
22,989 Points

Try using color: #000 as 000 is black and 111 is slightly black. #111 has 11 red, 11 blue and 11 green.

Jacob Miranda
Jacob Miranda
18,648 Points

You can use keywords for colors, so for code challenges you could just use the keyword "black" to get that color instead of using a hexadecimal value

**I just saw the tag says "Write Hexadecimal Colors" so I guess you shouldn't use keywords. I would stick to the full value, #000000 just to be safe.

Logan R
Logan R
22,989 Points

For this challenge, it says to specifically use hexadecimals.

cdatubo
cdatubo
550 Points

Thanks guys! I had a huge DUH! moment after my pomodoro break lol .#000 worked :)