Frage

here is my integration code:

@font-face {font-family: GETwoMedium;
        src: url(assets/font/ge_ss_two_medium.woff) format('woff'),
             url(assets/font/ge_ss_two_medium.ttf) format('truetype'),
                 font-weight:400;font-style:normal;}

and here is how I use it:

#primary li a {font-weight:bold;font-size:14px; font-family: GETwoMedium; color:#F5B349;}

but the font is not working, I try it with a localhost or even with online website nothing worked, I also tried to add apostrophe around the font-family name the url nothing worked. You can check it on my website here

file structure:

/style.css
/assets/font/ge_ss_two_medium.woff
/assets/font/ge_ss_two_medium.ttf
War es hilfreich?

Lösung

You've messed up some of your syntax with your comments

@font-face {
    font-family: 'GETwoMedium';
    src: url(assets/font/ge_ss_two_medium.eot);
    src: url(assets/font/ge_ss_two_medium.woff) format('woff'),
         url(assets/font/ge_ss_two_medium.svg) format('svg'),             
         url(assets/font/ge_ss_two_medium.ttf) format('truetype');
    font-weight:400;
    font-style:normal;
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top