1

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

3
  • doasn't work. it just switches from arial to times new roman
    – S.J.
    Feb 1, 2013 at 10:11
  • 1
    Is your css file in the same folder as the html file ?
    – Vucko
    Feb 1, 2013 at 10:21
  • omg dumb me... I changed it this morning and i forgot to change that link as well. THX!!!!
    – S.J.
    Feb 1, 2013 at 10:28

1 Answer 1

1

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

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.