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 trial

HTML How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

Set 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?

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
  color: #ffffff;
}

#logo {
  text-align: center;
  margin: 0;
}

2 Answers

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

The 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

Ok thank you bro i really treasure this