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 trialwayne Pendergrass
339 PointsSet the color of first and second level headlines to white using a hexadecimal value. can anyone tell me i cant get it
can anyone advice me how to fix this?
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
color: #ffffff;
}
#logo {
text-align: center;
margin: 0;
}
2 Answers
Sergey Podgornyy
20,660 PointsThe h1 to h6 tags are used to define HTML headings. In this task you need to create css rule for h1 and h2:
h1, h2{
color: #fff;
}
A hexadecimal color is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. All values must be between 00 and FF.
For example, the #0000FF value is rendered as blue, because the blue component is set to its highest value (FF) and the others are set to the lowest value (00).
More about color definitions you can read here - http://www.w3schools.com/html/html_colorvalues.asp
Caleb Kleveter
Treehouse Moderator 37,862 PointsThis should work:
h1, h2 {
color: #fff;
}
wayne Pendergrass
339 Pointswayne Pendergrass
339 PointsOk thank you bro i really treasure this