Answers for "How to call any font in css?"

CSS
14

how to link fonts css

@font-face {
  font-family: myFirstFont;
  src: url(sansation_light.woff);
}

div {
  font-family: myFirstFont;
}
/*Name the font-family and link the font file in the @font-face rule*/
Posted by: Guest on February-13-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

Browse Popular Code Answers by Language