Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

I'm stuck on this Challenge Task 2 of 4 Set the color of paragraphs to black using a hexadecimal value.

I am not sure how to code

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

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

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

  h1, h2 {
  color: #fff;
  }

6 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,624 Points

Use the element selector 'p' to select all the paragraphs. Then set the hex color to black #000000 or #000 (short code) using normal CSS syntax.

p {
  color: #000
}
Rob Brink
Rob Brink
7,148 Points
p {
 color: #000
} 

Hexadecimal colors are formatted like this #585858, you can go to the http://www.w3schools.com/ to learn in greater detail.

hope that helps!

Hey, remember what Nick taught us about hexadecimal colors? They consist of 3 colors(Red - R, Green - G, Blue - B) and they are written like this: #cd3292.

The maximum value a color can go to is ff and the minimum is 00, so the color that you have typed there is black, you need to use white, which is #000.

Radu, you got the last sentence wrong, buddy lol.

Yeah, you are right. Haha, editing right now. Sorry.

Awesome! Thank you

p{ color: 000; }