Answers for "css font from file"

CSS
25

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;
}
Posted by: Guest on October-29-2020
2

font face

@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);
}
Posted by: Guest on August-26-2020
2

import font in css

@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
Posted by: Guest on September-25-2021
0

import font css from url

@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
/*Use that for importing font via link*/
Posted by: Guest on July-08-2021

Browse Popular Code Answers by Language