Is it possible to use an absolute path with @fontace?
I have the follow directory-structure:
-HP
|--font
| |- Monoton.woff
| |- Monoton.eot
|--css
| |- font.css
| |- fontface.css
|--html
|-index.html
Defined the font-face
@font-face {
font-familiy: Monoton;
src: url('../font/Monoton.woff') format('woff'); // EDIT: Change fonts to font the name of th woff-file
font-weight: normal;
font-style: normal;
}
and used it in the css as class monoton:
@import url('fontFace.css');
.monoton {
font-familiy: Monoton, cursive;
font-size: 1.875em;
color: rgba(0, 200, 0, 1);
}
but it doesn't works in chrome, Firefox and co. Can somebody explain me why?
I have put the fontFace.css
and all font-files in the html-directory. Now it will work..