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 trialJONATHAN PACHA
12,039 Pointsthe question is asking me to set the paragraphs to black. I am not quite sure what i am doing wrong
i tried body, #p, (p) and i cant get it to go through
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2{
color: #fff;
}
#p {
color: #111;
}
2 Answers
Garrett Levine
20,305 PointsWhile #111 may be considered a shade of black, I imagine that answer they are looking for is along the lines of;
p { color: #000; }
or
p { color: black; }
mikes02
Courses Plus Student 16,968 PointsNicolas is providing the right answer but to elaborate on that answer the reason it is not working for you is because you are selecting #p, which means you are looking for an element that has an ID of p. In order for your code to work you would need to use:
<p id="p">This is my paragraph text.</p>
However, the challenge is asking you to style the paragraph, so you are not looking for a unique ID, instead you are looking for the paragraph element, so you want to use the element selector, which is simply
p {
color: #000;
}
or
p {
color: black;
}
Nicolas Fernandez
Full Stack JavaScript Techdegree Student 17,565 PointsNicolas Fernandez
Full Stack JavaScript Techdegree Student 17,565 Pointsdont put ( # )
example:
p { color: #000; }