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

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

Sara Parker
Sara Parker
2,238 Points

I do not understand task 2 of 4, please help me.

Task: Set the color of paragraphs to black using the p selector and a hexadecimal value

Bummer! Double check that you've styled paragraph (p) elements to be black with a hexidecimal value.

a { text-decoration: none; }

wrapper {

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

logo {

text-align: center; margin: 0; }

/* logo text */ h1, h2 { color: #fff; }

css/main.css
a {
  text-decoration: none;
}

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

#logo {
  text-align: center;
  margin: 0;
}

/* logo text */
h1, h2 {
  color: #fff;
}

You are currently not doing anything with your paragraph tags. If you want to set the color of all paragraphs to black, you should implement the following property to your CSS file:

p {
    color: #000;
}

1 Answer

Fletcher Henneman
Fletcher Henneman
3,130 Points

I’m on my phone so I can’t check the objective right now but it looks like you are setting the color of the elements inside the Paragraph, not the Paragraph itself:

p{ color #fff; }

If that doesn’t work I apologize and when I get home I will see what I can do.