Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Using @font-face to add a custom font CSS

/*set the font name and the url path*/
@font-face {
  font-family: customFontName;
  src: url(path/to/font/sansation_light.woff);
}

/*add the new font to an element or class, etc*/
p {
 font-family: customFontName; 
}

.myClass{
  font-family: customFontName;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Using #add #custom #font #CSS
ADD COMMENT
Topic
Name
2+9 =