S.J.
S.J.

Reputation: 169

css custom font doesn't work

this is the beginning of my css

@charset "utf-8";

@font-face {
    font-family: 'dax';
    src: url('font/Dax.eot');
src: url('font/Dax.eot?#iefix') format('embedded-opentype'), 
     url('font/Dax.woff') format('woff'), 
         url('font/dax-regular.ttf') format('truetype'), 
             url('font/Dax.svg') format('svg');
    font-weight: 300;
}

html, body {
font-family: "dax", Arial, serif;
....

this is my font file and this is the hierarchy of my site folder root contains: index.html and font and ....

font contains this: screen

Upvotes: 1

Views: 1728

Answers (1)

Sunil Polepalle
Sunil Polepalle

Reputation: 11

try it url('/font/dax-regular.ttf')

Upvotes: 1

Related Questions