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 trialJohn Gugel
1,165 PointsI'm stuck on this Challenge Task 2 of 4 Set the color of paragraphs to black using a hexadecimal value.
I am not sure how to code
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
6 Answers
Jason Anders
Treehouse Moderator 145,860 PointsUse the element selector 'p' to select all the paragraphs. Then set the hex color to black #000000 or #000 (short code) using normal CSS syntax.
p {
color: #000
}
Rob Brink
7,148 Pointsp {
color: #000
}
Ron Horn
7,591 PointsHexadecimal colors are formatted like this #585858, you can go to the http://www.w3schools.com/ to learn in greater detail.
hope that helps!
Radu Ioan Stochita
3,558 PointsHey, remember what Nick taught us about hexadecimal colors? They consist of 3 colors(Red - R, Green - G, Blue - B) and they are written like this: #cd3292.
The maximum value a color can go to is ff and the minimum is 00, so the color that you have typed there is black, you need to use white, which is #000.
Marcus Parsons
15,719 PointsRadu, you got the last sentence wrong, buddy lol.
Radu Ioan Stochita
3,558 PointsYeah, you are right. Haha, editing right now. Sorry.
John Gugel
1,165 PointsAwesome! Thank you
MUZ140860 Rutendo Shereni
6,628 Pointsp{ color: 000; }