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

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,860 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; }