FONTS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

FONTS

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 Answers
+ 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 - https://www.sololearn.com/learn/CSS/2264/
16th Apr 2018, 9:56 AM
Nikhil
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
Nikhil - avatar