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 Commented Feb 1, 2013 at 10:11
  • 1
    Is your css file in the same folder as the html file ? Commented Feb 1, 2013 at 10:21
  • omg dumb me... I changed it this morning and i forgot to change that link as well. THX!!!! Commented Feb 1, 2013 at 10:28

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.