How to i call two different fonts in a css file ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to i call two different fonts in a css file ?

Hi, I want to use two different fonts for my webpage that i have downloaded on internet (i have them in local). I know how to load a single font with the css code : " @font-face { font-family: "Fashion Fetish Light"; src : url(../font/FashionFetishLight.ttf); } But how add 2 fonts instead of a single one ? Thank you :)

14th Jan 2018, 10:42 AM
Auguste Maillot
Auguste Maillot - avatar
2 Answers
+ 3
@font-face { font-family: CustomFont; src: url('CustomFont.ttf'); } @font-face { font-family: CustomFont2; src: url('CustomFont2.ttf'); }
14th Jan 2018, 11:18 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
thanks !
14th Jan 2018, 11:37 AM
Auguste Maillot
Auguste Maillot - avatar