Answers for "how connect font family 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
1

css font family

/* You can set the font family by using font-family: followed by the font family name
 If you want to use a google font you have to find it on the google font website
then link the script in your HTML and then put the name in font family 

browse fonts:
https://fonts.google.com/
*/

.class {
  font-family: sans-serif
}
Posted by: Guest on December-15-2020

Browse Popular Code Answers by Language