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 trialAndrew Shipley
7,781 PointsCustomizing 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';
}```
3 Answers
Brenna Leker
7,596 PointsHi 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?
Andrew Shipley
7,781 PointsI think I meant sans-serif should be the fallback.
Andrew Shipley
7,781 PointsBut anyway, removing the '' worked, but how come it did not like it with them in?
erdragerdragsson
Courses Plus Student 5,887 Pointsbecause you dont need the '' marks if the word is put together like sans-serif, only if the value is 2 words like Open Sans
Andrew Shipley
7,781 PointsI see, thanks.
erdragerdragsson
Courses Plus Student 5,887 Pointserdragerdragsson
Courses Plus Student 5,887 Pointstry removing the ' ' marks from sans-serif! :)