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 trialSharon Weathers
805 PointsColor text set to black using a hexidecimal value
Not sure from the video how to set text in a paragraph to black using a hexidecimal value. I have watched the video twice. What am I missing?
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
a {
color: #6ab47b;
}
h1, h2 {
color: #fff;
}
nav {
background: #599a68;
}
body {
background-color: #000000;
color: #ffffff;
}
2 Answers
Luke Glazebrook
13,564 PointsTo set all the p elements text to the color black you will need the following code.
p {
color: #000;
}
I hope this helped you out.
dexblack
6,889 PointsTo set the colour of the paragraph text to black, you will need to use the following code:
p {
color: #000;
}
The 'p' selector selects your paragraph elements, and the 'color' property defines the colour of the text in your paragraph elements with the value that you provide.
Good luck!