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 trialArlene TIlly
1,619 PointsCSS- paragraph to black hex color?
It is asking me to make a paragraph to black hex color. I guess I need help with since it isn't going through.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
p {
color: #0000;
}
6 Answers
Hugo Paz
15,622 PointsHi Arlene,
Hex values in CSS are either 6 numbers or like in this case 3 numbers if they are doubles - 223344 can be written as 234.
Tony Luo
14,224 PointsYour hex value should only have either 3 or 6 hex digits. I think you added an extra one by mistake.
Arlene TIlly
1,619 PointsI have tried six 0 and three and it doesn't matter. It won't work.
Arlene TIlly
1,619 PointsI meant I have tried six and four. It still will not go through.
Hugo Paz
15,622 PointsHave you tried with 3? It might be expecting the shorthanded version.
Arlene TIlly
1,619 PointsYes I have done 3 and it doesn't work.
Tony Luo
14,224 PointsCan you re-post your updated code?
Hugo Paz
15,622 PointsArlene,
Could you please post the full question here?
Arlene TIlly
1,619 Pointsa {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #000;
}
Tony Luo
14,224 PointsAhh, so what you are doing there is changing the h1 and h2 elements to black. Instead you want to change the p element to black.
What you had originally was very close, you did not have to modify the h1 and h2.
You see in the code that you original had:
p { color: #0000; }
there were 4 decimals.