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

I need some help

Help me figure this out

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

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

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

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Lane.

You want to write a hexadecimal colour. If memory serves me rightly it wants to be in the 3 digital shorthand.

A hexadecimal colour is written in Base 16 numbering system. It has values for red, green and blue to make up all the different colour shades.

Base 16 means it doesn't go from 0 to 9. But from 0 to 9 and A to F. The higher the value the brighter the shade of colour.

So to get white you'd write.

color: #fff;

to get white

color: #000;

to get black.

Hope this helps :)

You need to start with 1 or 2 new css statements.

Remember the syntax:

Selector { Whatever you want the selector to do }

In you case you want to call the l1 headline and give it a color. So your selector is 'l1'

L1 {

}

In the curly braces you set the color you want your headline to have as specified above. Then you need to write the same statement calling the second selector.