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

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