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

Jessica magdefrau
Jessica magdefrau
351 Points

Set the color of paragraphs to black using a hexadecimal value.

this is the error it's giving me: Double check that you've styled paragraph (p) elements to be black with a hexadecimal value.

this is what my code looks like: a { text-decoration: none; } h1,h2 { color: #fff; }

wrapper {

max-width: 940px; margin: 0 auto; }

logo {

text-align: center; margin: 0; }

css/main.css
a {
  text-decoration: none;
}
h1,h2 {
  color: #fff;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}
Marcus Quarles
Marcus Quarles
14,598 Points

Call the p (paragraph) tag specifically and set it to black.

p { color: #000; }

3 Answers

simon buysse
simon buysse
9,716 Points

Hi jessica! Your code doesn't have any styling applied to the paragraph element.

To add styling to the paragraph element you select it first with the selector 'p' You then say what property you'd like to change and what value it should have. In your case, this is the 'color' property and you want to set it to black. The hexadecimal code for black is #000000 (or shorthand #000)

So try adding this to your code:

p{
   color: #000;
}
Mark Leonard
Mark Leonard
7,428 Points

You are setting the header elements (h1, h2). You should set the paragraph in the same way.

p {
  color: #fff;
}