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

Second code challenge question

I'm not seeing from the Stage 5 lessons on CSS & color and class how to set the color of a paragraph. I know what the hexadecimal code is for that color (black, #000), but I don't know the syntax of commanding it for the paragraph (p) element. I had no trouble with the first task, based on the videos, but the second one is stopping me, and the hint doesn't help.

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

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

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

h1, h2 {
color: #fff;
}

4 Answers

Kris Phelps
Kris Phelps
7,609 Points

If I understand your question, then what you're looking for is this:

p {

  color: #000;

}
Kris Phelps
Kris Phelps
7,609 Points

You're very welcome :-) Don't forget to select best answer. It gives me some of those sweet points! :-D

Yes! Thank you!

FYI #fff is the color white. You're looking for the color black which is #000. Don't understand, go to w3schools.com and in the search box type in hexdecimal, click on CSS Color Values. That should give some hints to the code challenge.

Got it, thanks!