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

JUAN BORRAS
JUAN BORRAS
716 Points

CSS challenge

Hi there, Can anyone help me with the challenge. Set the color of paragraphs to black using a hexadecimal value. What´s the value for paragraph? Isn´t it p?

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

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

#logo {
  text-align: center;
  margin: 0;
}
h1, h2 {
  color: #fff; 
}
p {
  color: 000000;
}

4 Answers

Justin Estrada
Justin Estrada
34,995 Points

Hi, you forget the # symbol, you can also right the color value like:

000, #000000, rgb(0,0,0) or black

Herb Bresnan
Herb Bresnan
10,658 Points

yes it is p. you just forgot the # in front of the hex color.

JUAN BORRAS
JUAN BORRAS
716 Points

Thanks a lot you guys, having trouble with this css colour stuff...!!!. Bummer How about setting the color of anchor element inside the nav element? Just called it nav but it seems i need to set the anchor element somewhere...??? Aaaaahhhh....

Justin Estrada
Justin Estrada
34,995 Points

Using inspect element to aid in customizing CSS is very helpful. Use specification to target the elements you want to add CSS to. Examples: nav > a { color: #000; } nav a { color: #000; }

JUAN BORRAS
JUAN BORRAS
716 Points

Thanks Justin, that was very helpful