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

Laith Wallace
PLUS
Laith Wallace
Courses Plus Student 858 Points

How do you set the color of a prargraph to black using a hex value? thanks

Ive just started learning to code and im using the code challenge. Thanks for the help.

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

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

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

a {
  color: #6ab47b;
}

header {
  background: #6ab47b;
  border-color: #599a68;
}

h1, h2 {
  color: #fff;
}

nav {
  background: #599a68;
}

nav a, nav a:visited {
  color: #000
}

nav a.selected, nav a:hover {
  color:#000;
}

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

2 Answers

Alex Heil
Alex Heil
53,547 Points

hey Laith, no worries -we'll figure it out ;)

ok, so when you're asked to set the paragraphs to the hex value black we need 2 things:

1) we need to select the paragraph. paragraphs are represented by p

2) we need the hex value of black - the hex value of black is #000

now let's bring these 2 together:

p {color: #000}

with this line in place everything should work fine. hope that helps and have a nice day ;)

Laith Wallace
PLUS
Laith Wallace
Courses Plus Student 858 Points

Amazing. thanks as I was going crazy..... Wow so simple...lol

Alex Heil
Alex Heil
53,547 Points

you're welcome. great to hear this helped you out ;)