Search
 
SCRIPT & CODE EXAMPLE
 

CSS

how many fonts can i add in a css font-face

@font-face {
    font-family: CustomFont;
    src: url('CustomFont.ttf');
}

@font-face {
    font-family: CustomFont2;
    src: url('CustomFont2.ttf');
}
Comment

Using @font-face to add a custom font CSS

/*set the font name and the url path*/
@font-face {
  font-family: customFontName;
  src: url(path/to/font/sansation_light.woff);
}

/*add the new font to an element or class, etc*/
p {
 font-family: customFontName; 
}

.myClass{
  font-family: customFontName;
}
Comment

PREVIOUS NEXT
Code Example
Css :: how to center a html header 
Css :: css calc 
Css :: nth last of type 
Css :: How To Disable Swipe To Go Back In Chrome or any browser 
Css :: relative position div is overlapping fixed or sticky header 
Css :: vertical hr 
Css :: how to stretch picture with website css 
Css :: css background transparency or alpha mode 
Css :: hover media query 
Css :: reset specific css 
Css :: mat dialog background color 
Css :: background image overlay 
Css :: add inner border css 
Css :: minimum margin css 
Css :: Media Query smartphone only 
Css :: select dropdown icon change 
Css :: bootstrap create full screen background image 
Css :: clamp css 
Css :: css border only top and bottom 
Css :: css opacity from 0 to 1 
Css :: how to make div possion top in css 
Css :: how to use font awesome with tailwind css 
Css :: css gradient bottom page 
Css :: remove box around button when clicked 
Css :: remove the dotted border on links 
Css :: bootstrap progress bar animation not working 
Css :: background pulled to corner on small screens 
Css :: css triangle 
Css :: how to make the header stay on the top of the page in html 
Css :: select odd child css 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =