FONTS | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1


Im new at html and i have this question that makes my head hurt. i want to upload my site someday on the web ( .com) i have an installed font on my computer "manhattan darling" what should i put in p { font-family: } Thank you so much. im a noob sorry

16th Apr 2018, 9:48 AM
Ceci Alejo
Ceci Alejo - avatar
2 ответов
+ 7
You'll have to first load the font using the @font-face by giving the source to the font file. Example - @font-face{ font-family: ManDar; //name src: url("link of font here"); } //Now we have the font named ManDar p { font-family: ManDar;} //Done :) More about the @font-face rule here -
16th Apr 2018, 9:56 AM
Nikhil - avatar
+ 6
You have to put the Fonts in the same folder or you have to give the full directory to the font file...Yea just like images
16th Apr 2018, 11:31 AM
Nikhil - avatar