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

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.