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.

CSS

Customizing Colors and Fonts Challenge

Hi I am stuck on the second part of the task, I am supposed to set the fallback to open sans but I keep on getting the "bummer" about not putting the fallback in. Here's my code:

h1{
    font-family: 'Open Sans', 'sans-serif';
}```

try removing the ' ' marks from sans-serif! :)

3 Answers

Brenna Leker
Brenna Leker
7,596 Points

Hi Andrew, if 'Open Sans' is the fallback what is the initial value? Do you need to add another font-family to the beginning of the declaration?

I think I meant sans-serif should be the fallback.

But anyway, removing the '' worked, but how come it did not like it with them in?

because you dont need the '' marks if the word is put together like sans-serif, only if the value is 2 words like Open Sans

I see, thanks.