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

Not accepting my code

This challenge is asking me to style paragraph elements to be black with a hexidecimal value. The CSS code I am using is:

body {
   color: #000;
}

It doesn't seem to be accepting that answer. I have also tried

body {
   background-color: #fff;
   color: #000;
}

and

body {
   background-color: #fff;
   color: #000000;
}

Edit: Here is the overall code from the challenge

a {
  text-decoration: none;
}

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

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

h1, h2 {
  color: #fff;
}

body {
  color: #000;
}

4 Answers

You need to be more specific. Since the challenge wants you to style just the paragraph elements, you need to select them.

p {
  color: #000;
}

Which elements is it asking you to style? ;) (i.e. not body)

Paragraph elements (<p>) are not body elements (<body>). Try switching that.

Oh! That's so odd because they didn't tell me how to style paragraph elements in the previous tutorial video. Just body text. I guess they DO provide the little (p) as an indicator. Well, thanks!