Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Simple Website Styling Content Fonts and Colors

Color doesn't change

I added: font-family: 'Nunito', sans-serif; color: #FAF3BC; and the color did not change. Ideas?

8 Answers

marsha grasett
marsha grasett
9,995 Points

Did your content have HTML tags? ie:

<h1> heading</h1>

And if so did you target your tag in the CSS?

h1{
font-family: 'Nunito', sans-serif; color: #FAF3BC; 
}

Yes. I have: <h1>heading</h1> body { font-family: 'Nunito', sans-serif; color: #FAF3BC; background: #420600 url('img/bg-texture.jpg') repeat;

Yes. I have: <h1>heading</h1> body { font-family: 'Nunito', sans-serif; color: #FAF3BC; background: #420600 url('img/bg-texture.jpg') repeat;

Yes. I have: <h1>heading</h1> body { font-family: 'Nunito', sans-serif; color: #FAF3BC; background: #420600 url('img/bg-texture.jpg') repeat;

marsha grasett
marsha grasett
9,995 Points

heading body???

Should that not be just body?

marsha grasett
marsha grasett
9,995 Points

Also do you have a closing curly brace?

Here is what I have: body { font-family: 'Nunito', sans-serif; color: #FAF3BC; background: #420600 url('img/bg-texture.jpg') repeat; }

marsha grasett
marsha grasett
9,995 Points

I copied and pasted your above code into CodePen and It did change!

http://codepen.io/alicetheblue/pen/jHwgB

(CodePen is a great place to play around with code ;)