-2

Ok I have my site up so far but the two fonts I used are not showing up. I transferred the fonts and put them in the same folder as my webpages. I also used @font-face in css (styless.css). I'm not sure where I went wrong.

Website: http://envycosmetics.zxq.net/TestSite/webpages/index.html

user1165861
  • 829
  • 2
  • 9
  • 14

2 Answers2

1

I'm looking at styless.css, and I can't see where you used @font-face. Make sure you do it like this:

@font-face { font-family: FontName; src: url('path/to/font.otf'); } 

Then call it like this:

#navBar { font-family: FontName, sans-serif; }

Also, don't forget to call another font for browsers that don't support @font-face, as shown in #navBar values.

FelipeAls
  • 21,711
  • 8
  • 54
  • 74
0

I also used @font-face in css (styless.css)

No... no, you didn't.

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055