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 trialAnya Kore
Courses Plus Student 4,379 PointsPlease, help me to understand how to set the color of paragraphs to black (for ex.) using a hexadecimal value. Thanks!
The color of paragraphs using a hexadecimal value.
Anya Kore
Courses Plus Student 4,379 PointsBig thanks! It works!
1 Answer
Pav Cieslak
808 PointsAna Kore u should understand how to use HEX values. Do u understand why Dov Breuer gave u only #000 instead of #000000 ?
U could also write is as:
background: black;
or u could specify it in a rgb value like so:
background: rgb(0,0,0);
or:
background: HSL(0, 0%, 0%);
happy coding ! :)
Anya Kore
Courses Plus Student 4,379 PointsAs I understood, #000 and #000000 for black, #fff and #ffffff for white - is the same. Thanks for your answer :) will do my best
Dov Breuer
8,268 PointsDov Breuer
8,268 Pointsp { Color: #000; }