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 trialgigipedala
3,632 PointsHow do you set the color of a paragraph in a css file? I don't really understand the requirement
I don't understand exactly what the questions requires me to do. It says I should change the color of paragraphs to black.
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
1 Answer
Jeremy Hill
29,567 Pointsp{
color: #color key code here ;
}
This will change the color in all of your paragraphs. If you are targeting a specific paragraph then you might consider using an id selector which would be like this:
#someId{
color: #color key code here ;
}
Jeremy Hill
29,567 Pointsp{
color: #000;
}
this will change your font to black.
Jay Padzensky
4,731 PointsNote that you can use keywords, hex, or Red Green Blue color values (rgb) to change colors. Check out this link for some additional information!
gigipedala
3,632 Pointsgigipedala
3,632 PointsThank you very much, that's what I wasn't understanding. Cheers!