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

harry curtis
harry curtis
2,626 Points

mind lock on challenge 2 "Set the color of paragraphs to black using a hexadecimal value." help. harryc

don't know why this is i hanging me up, I am probably reading too much into it but I would like to move on.

5 Answers

Sage Elliott
Sage Elliott
30,003 Points

Hello, Harry. Use the paragraph selector "p" in your CSS file. inside the brackets you can set the color. In CSS a hexadecimal color value looks like a "#" sign followed by 6 numbers/letters. Example: #FFFFFF is equal to white. If the numbers are repeating such as the example above you can often short hand it by simply entering only three(half) of the value. Example: #FFF is still equal to white. The value for black is #000000 or #000. Now that you know how it works you can try to it out. It should look similar to this.

I hope this helps. Code on!

 p {
   color: #000000;
}
harry curtis
harry curtis
2,626 Points

they were all the best answers, it was really a simple problem, I just went into a frustration mind lock about it, am much better now.

harry curtis
harry curtis
2,626 Points

Worked, thank you. It was turning into a thing, must have tried every permutation but that. frustrating but great learning experience.

harry curtis
harry curtis
2,626 Points

thanks, worked fine , just developed a major mind lock about it.

harry curtis
harry curtis
2,626 Points

thanks to all of you. Do you remember the mind lock scene from the movie thx 1138?