html - Relative URL in @font-face source doesn't work -


i downloaded delicious-roman font , want use in css page. doesn't seem work relative url, when placed in same folder css page, worked! folders this:

 -project    -fonts        -delicious-roman.otf    -folder        -project.html        -projectstyle.css 

so did this:

@font-face{    font-family: delicious;    src: url(../fonts/delicious-roman.otf); } div{    font-family: delicious; } 

but doesn't work. when put delicious-roman.otf in folder , this:

 @font-face{    font-family: delicious;    src: url(delicious-roman.otf); } div{    font-family: delicious; } 

its , works. i've seen people put format(otf); next src, don't know why.

you testing in firefox. try chrome , work. firefox fix, see: bootstrap 3 unable display glyphicon properly


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -