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 trialKanav Mahajan
497 PointsCSS code challenge
http://teamtreehouse.com/library/write-hexadecimal-colors
I am stuck at setting the color of the paragraph element to black in this code challenge. Help!
3 Answers
idan ben yair
10,288 PointsHi Kanav,
To set the color of the text in the paragraph to black your css should look like this:
P {
color: black;
}
if you need the background to be black you will need to do this:
p {
background-color: black;
}
Let me know if that helped :)
Chema Castellanos
3,984 PointsJust select the p element and set the color to #000 or #000000 which is the same, that code means black (zero amount of red, green and blue)
Kanav Mahajan
497 PointsThank You for your help!
idan ben yair
10,288 PointsNo problem Kanav! anytime :)
Kanav Mahajan
497 PointsKanav Mahajan
497 PointsThank You for the help!