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 trial

CSS How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

JONATHAN PACHA
JONATHAN PACHA
12,039 Points

the 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

css/main.css
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
Garrett Levine
20,305 Points

While #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; }

Nicolas 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;
}