Please tell why it is not showing the font I want in the output (check CSS) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Please tell why it is not showing the font I want in the output (check CSS)

I have made a code, however the font I tried to put is not being shown in the output; I am a learner in CSS so please help me improvise https://code.sololearn.com/W1Sj1rW9Rrf7/?ref=app

12th Jan 2019, 11:48 AM
Aditya Kannojia
Aditya Kannojia - avatar
2 Answers
+ 2
Why aren't you setting the font like this? body { font-family: somegeneralfontlikeserif; (serif is a generic font (supported by all browsers)) } h1 { font-family: fontname, fallbackfont, anotherfontname; } Browsers use a fallback system, this means that if the font is not supported in the browser it shall not be shown but rather falls back onto the other fonts you chose, it's very likely the "Edition" font? you're using is not supported in the browser, it reads the fonts from left to right and uses the left most font if possible, the h1 font-family should override the body one. hope this helps
12th Jan 2019, 12:21 PM
Joery De Loose
Joery De Loose - avatar
0
Plz tell me why it is still Not working
25th Jan 2019, 2:23 PM
Aditya Kannojia
Aditya Kannojia - avatar