Sonntag, 31. August 2014

CSS - Custom Fonts

This is how you can use your own custom font on your website.

  • upload your font into the css directory
  • declare a new font-face
  • url to font is relative to the css file!



 
   
@font-face {
    font-family: 'eras'; /*a name to be used later*/
    src: url('Eras-Demi-ITC_15890.ttf'); /*URL to font*/
}


body {
    font-family: 'eras';
}

Keine Kommentare:

Kommentar veröffentlichen