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

@font-face

Hey gues ,

i've got a problem with @font-face in css probably i linked in the Font correctly when i try to use my font like this :

font-family: 'name' ; everything is working but when i use it like that

font-family: 'name', sans-serif ; he uses the sans-serif not my linked Font

does somebody know why ? i also tried with gerneric-family my font is working but in case that my font isnt available would he use sans-serif?( i am not sure if i understand generic-family in that way it has to be used)

1 Answer

Cindy Lea
PLUS
Cindy Lea
Courses Plus Student 6,497 Points

sans-serif is the backup font in case the first font you selected is not available.