Horje
use woff2 font in css Code Example
css font face
@font-face {
  // Defining what the font will be called
  font-family: thisSpecialFont;
  // Linking to the font file
  src: url(linkToFontFile.woff);
}
body {
  font-family: thisSpecialFont;
}
If you're trying to use a package make sure that '../../static/fonts/lato/Lato-Regular.woff' is installed. If you're trying to use a local file make sure that the path is correct.
/** Use intstead */
@font-face {
  font-family: 'MyFont';
  src: local('MyFont'), url(fonts/MyFont.woff) format('woff');
}
use woff2 font in css
@font-face {
  font-family: 'MyWebFont';
  src:  url('myfont.woff2') format('woff2'),
        url('myfont.woff') format('woff');
}
import font woff css
body {
  font-family: 'MyWebFont', Fallback, sans-serif;
}




Css

Related
css space between child elements Code Example css space between child elements Code Example
border 1px thick Code Example border 1px thick Code Example
css light grey Code Example css light grey Code Example
gradient css background Code Example gradient css background Code Example
selecting last child css Code Example selecting last child css Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9