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 trialStephen Wilson
Courses Plus Student 1,873 PointsSet 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
Matthew Ludwigs
11,197 PointsI am glad I could help!!
Matthew Ludwigs
11,197 PointsHey 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
Courses Plus Student 1,873 Points1 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.
Matthew Ludwigs
11,197 PointsIt 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.
Stephen Wilson
Courses Plus Student 1,873 PointsThanks Matthew it worked!