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 trialJimel Atkins
2,093 PointsSet the color of paragraphs to black using hexadecimal values?
Not sure what to write here. Would it be p { color: ; } and the hexadecimal value for black in that space?
a {
text-decoration: none;
}
a {
color: #ffffff;
}
h1,h2 {color: #fff;}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
2 Answers
Gwen Sims-Williams
10,898 PointsHi Jimel, you've got it right. Any of following will turn the text of your paragraphs black:
p {
color: #000;
}
p { color: #000000;}
p {color: black;}
Shane Robinson
7,324 PointsAre you asking what the hexadecimal value for black is? If that is the case it is #000000 or #000 for short. If not, could you clarify your question?
Jimel Atkins
2,093 Pointswas asking if i use (p) as the selector but it worked! thanks so much
Jimel Atkins
2,093 PointsJimel Atkins
2,093 Pointsthanks Gwen! really helped !