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

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;