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

@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,485 Points

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