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

Stephen Wilson
PLUS
Stephen Wilson
Courses Plus Student 1,873 Points

Set the color of paragraphs to black using a hexadecimal value.

I'm stuck on this challenge! I know the color #000, I don't know what their asking!

5 Answers

I am glad I could help!!

Hey Stephen,

I am not sure what your code looks like, but maybe I can help lead you in the right direction. Make sure you are using an element selector for the paragraphs and write css code for that selector to change the color to #000. Hopefully this helps. If it doesn't could you write your code in a comment so I can have more clarity on the issue. Thanks!

Stephen Wilson
PLUS
Stephen Wilson
Courses Plus Student 1,873 Points

1 a { 2 text-decoration: none; 3 } 4 5 #wrapper { 6 max-width: 940px; 7 margin: 0 auto; 8 } 9 10 #logo { 11 text-align: center; 12 margin: 0; 13 } 14 15 h1, h2 { 16 color: #fff; 17 }

Here it is Matthew, the next step is- Set the color of paragraphs to black using a hexadecimal value.

It appears that some numbers were added in your code? Basically, if I am reading your code correctly, and assuming the numbers are added by accident you have to do something like what you did for the h1 and h2:

h1, h2 { color: #fff; }

You are using two element selectors (h1 and h2) and the color property to set those elements to white. For the paragraph you will want to use the paragraph element selector (p) and the color property to change the paragraph to black (#000). This would look like:

element selector for paragraph { color property: Hex for black; }

Which translates to:

p { color: #000; }

or

p {
  color: #000;
}

I hope this helps.