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 trialGidon Urs Bohnacker
677 PointsBummer! Why?
Bummer! Double check that you've styled paragraph (p) elements to be black with a hexidecimal value.
Whats wrong with my code?
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff
}
p {
color: #ffffff
}
2 Answers
Steven Parker
231,236 PointsIt looks like you have the wrong color code.
As Luca pointed out, the color code for black is #000000
, or the shorthand version #000
.
Kelvin Ribeiro
2,814 PointsYou're missing the Semicolons (;) at the end of the colours.
Steven Parker
231,236 Points Semicolons are only necessary between properties.
Having one after the last (or only) one is good practice but causes no problem if absent.
Kelvin Ribeiro
2,814 PointsTrue but I assumed the website checks if you inputted the right code by comparing to the code they have. If that's the case I'm pretty sure the semicolons are the ones missing. Even though he wrote black in here, on the challenge itself is telling him to turn it white, so that shouldn't be the problem.
Steven Parker
231,236 PointsThe correct color code will pass the challenge. Try it yourself and see.
Kelvin Ribeiro
2,814 Pointsi just did, the code was h1, h2 { color: #fff; } The question is asking to make it white.
Steven Parker
231,236 PointsRead the original question again, it's about a different task.
Kelvin Ribeiro
2,814 Pointsyeeh i realized it said black on the question. I thought that by clicking "view challenge" i'd be sent to the actually challenge the student was having problems with and there said white.
Luca Cunico
Courses Plus Student 14,196 PointsLuca Cunico
Courses Plus Student 14,196 PointsHello,
black in hexidecimal is #00000. #ffffff is white.