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 trialApril Ehrlich
4,164 PointsNot accepting my code
This challenge is asking me to style paragraph elements to be black with a hexidecimal value. The CSS code I am using is:
body {
color: #000;
}
It doesn't seem to be accepting that answer. I have also tried
body {
background-color: #fff;
color: #000;
}
and
body {
background-color: #fff;
color: #000000;
}
Edit: Here is the overall code from the challenge
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
body {
color: #000;
}
4 Answers
Ian Keith
15,720 PointsYou need to be more specific. Since the challenge wants you to style just the paragraph elements, you need to select them.
p {
color: #000;
}
Andrew Molloy
37,259 PointsWhich elements is it asking you to style? ;) (i.e. not body)
James Gill
Courses Plus Student 34,936 PointsParagraph elements (<p>) are not body elements (<body>). Try switching that.
April Ehrlich
4,164 PointsOh! That's so odd because they didn't tell me how to style paragraph elements in the previous tutorial video. Just body text. I guess they DO provide the little (p) as an indicator. Well, thanks!