Answers for "add font to website"

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
0

how to include a new font website

/*Add custom fonts to your website w/ @font-face, most common approach

Step 1: Download the font
Step 2: Create a WebFont Kit for cross-browsing
Step 3: Upload the font files to your website
Step 4: Update and upload your CSS file
Step 5: Use the custom font in your CSS declarations
Posted by: Guest on August-30-2021

Browse Popular Code Answers by Language