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 Build a Simple Website Styling Content Fonts and Colors

Franziska Christensen
Franziska Christensen
216 Points

I think there is a problem here.

I write the HEX color with #FAF3BC as i am told. I write it like body{ font: #FAF3BC;} but then the corrector says "Remember that hex colors start with '#' and then are followed by six characters. correct me if i'm wrong, but isn't 'F A F 3 B C' 6 characters?

4 Answers

The property you should be setting is color not font.

Privado Coronel
Privado Coronel
13,504 Points

property for font color sir is color.

body ( color: #faf3bc; }

geoffrey
geoffrey
28,736 Points

You don't have to apply the hexadecimal color to the font property, but instead to the color property.

body{

background-color: #FAF3BC; // If you are asked to color the background
color: #FAF3BC;                    // If you are asked to color the text.

}
Franziska Christensen
Franziska Christensen
216 Points

okay so if i have to color the text in the body, i will only have to write color. Thanks! :)

Your are correct that is indeed 6 characters, however I do notice that your application adding a color to the element is incorrect.

    body {
        color: #FAF3BC;
    }

I believe the error message is a little misleading there, it should really have said "almost, try looking at your rule" or something like that.