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

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
19,392 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 :)