When specifying font family can i specify two different font family for a selector | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

When specifying font family can i specify two different font family for a selector

Font family

3rd Jan 2021, 10:17 AM
Bilal
4 ответов
+ 3
Obviously not. How can you show two fonts for the same text?
3rd Jan 2021, 10:21 AM
XXX
XXX - avatar
+ 2
Bilal oh ok! In that case, you can just specify as many fonts you want separated by comma, and the browser will use the first one that is avaiable https://stackoverflow.com/questions/4673963/css-fallback-fonts
3rd Jan 2021, 10:41 AM
XXX
XXX - avatar
+ 1
I mean if the browser doesn't recognize the first font and let's say that one is serif then the second font is san-serif would it work
3rd Jan 2021, 10:24 AM
Bilal
0
Ok thank you
17th Jan 2021, 12:09 AM
Bilal