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 trialLara Stanger
2,257 PointsIt keeps saying "Set the color of paragraphs to black using a hexadecimal value." I don't know how to fix it.
Then it says Bummer! Double check that you've styled paragraph (p) elements to be black with hexidecimal value.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
#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: #fff;
}
nav a.selected, nav a:hover {
color: #32673f;
}
body {
background-color: #fff;
color: #999;
}
2 Answers
Jeff Jacobson-Swartfager
15,419 PointsHi Lara!
You can select the paragraphs with the p
selector. Then, you can set the color
of the paragraphs with the hexadecimal value for black (which is #000000
).
So, just add the following to your stylesheet:
p { /* selects all paragraphs */
color: #000000; /* sets their color property to the hex value for black */
}
Lara Stanger
2,257 PointsCool. Thank you. You rock!
Lara Stanger
2,257 PointsLara Stanger
2,257 PointsHello and thanks for the speedy reply with help! I appreciate it, do I just add it anywhere to the stylesheet?
Jeff Jacobson-Swartfager
15,419 PointsJeff Jacobson-Swartfager
15,419 PointsNo problem! And yup, you can add it anywhere within your stylesheet (as long as it isn't nested within another rule).
So, if you add it right after your
body
rule, it should pass!