Montana-Media-Arts / 341-work

Resource repo and homework wiki for MART341-WebDev
https://montana-media-arts.github.io/mart341-webDev/
2 stars 2 forks source link

Fonts Not Working #51

Open JakeTheFlare opened 7 years ago

JakeTheFlare commented 7 years ago

I'm having trouble with my fonts in my final. I created a separate folder for the downloaded fonts I choose to use for my webpage, but they don't seem to effect my text when I view my work on a different computer. Do I have to have them in my css folder, or is there a special kind of code I have to use to link my fonts?

marchendrickson commented 7 years ago

I dont think that you can just link fonts how you have tried. I usually pull the .ttf out of their original folders and put them just straight into the fonts folder. Then you must create a new font.css file as well as link the style sheet just under the original style.css link in your html. It should look like:

link rel="stylesheet" type="text/css" href="./style/style.css"/ link rel="stylesheet" type="text/css" href="./style/font.css"/

Then the font.css should look like how it was discussed in Week 8 bottom of the page.