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

Tiffany Blakesley
Tiffany Blakesley
1,252 Points

how to chage the color of a (p) using hexidecimal value

im not sure how to do it o what the hexidecimal value is for black

2 Answers

Alex Tasioulis
Alex Tasioulis
4,950 Points

Remember that in a hex color value each of the three couples of digits (out of the 6 digits) represents a separate color value for red, green, blue -- and f is the highest hex value available (the 16th out of the 16 possible numbers). so

!) #ff0000 = really red
2) #00ff00 = really green
3) #0000ff = really blue 

Black is the absence of any color = #000000 which is usually shortened to #000 (and white in turn is #fff)

You can change color to white for <p> element like this:

p {
color: #ffffff;
}