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 can't get passed the question in Web Design challenge.

It says "set the color of the paragraph element to black using hexadecimal colors" - I keep putting

p {
  color: #000;
}

What am I doing wrong?

8 Answers

Actually, Julian, hexadecimal numbering refers to a Base-16 numbering system (not 6), and tridecimal refers to a Base-13 numbering system. Senary refers to a Base-6, and Ternary refers to a Base-3.

Hence, Ricardo's right: you can abbreviate a hexadecimal to only 3 digits—but maybe for this particular quiz question, you could be right if TT is asking for all six digits to be implemented into the answer.

p {
    color: #000000;
}

Try that

Julian Price
Julian Price
11,760 Points

Hex means six ie hexagon (six sided)

Julian Price
Julian Price
11,760 Points

LOLs who knew geometry and math would be so useful :)

Julian Price, Hexadecimals can be abbreviated to 3. For example, #FFFFFF can be abbreviated to #FFF and #33FF44 can be #3F4. With this being said #000 should be equivalent to black. Why it doesn't work in the code challenge is beyond me.

Task 2 passes with this:

p {
  color: #000;
}

Which looks the same to me as what you posted. Maybe you should paste in what all of your css looks like on task 2. Maybe you have some error before that's throwing off the code checker.

Julian Price
Julian Price
11,760 Points

Mark de Groot solution should work because hexa = 6

Julian Price
Julian Price
11,760 Points

Yes colors can be simply 3 but the question was in hexadecimal (6) not abbreviated are tridecimals :) let's be honest 3 is tri :)LMAO . Let's get right people ;)