CSS - Unable to use downloaded fonts -


there 2 particular fonts pre-installed. render fine in chrome, not in firefox. included fonts using @font-face downloaded.

css:

@font-face {   font-family:elephant;   src:url('/styles/fonts/elephant.ttf');    font-family:harrington;   src:url('/styles/fonts/harrington.ttf'); }  .title {   font-family:elephant; } .title2 {   font-family:harrington; } 

they still don't work in firefox. need do?

the main problem need have separate @font-face rule each font import/download use in css:

@font-face {   font-family: "elephant";   src: url("/styles/fonts/elephant.ttf"); }  @font-face {   font-family: "harrington";   src: url("/styles/fonts/harrington.ttf"); } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -