Search
 
SCRIPT & CODE EXAMPLE
 

CSS

Define Or Attach Font Face In HTML CSS Web Page

/* Generated by AminArjmand */
@font-face {
  font-family: Vazirmatn;
  src: 
		url('fonts/vazir/Vazirmatn-Regular.ttf') format('truetype'),
		url('fonts/vazir/Vazirmatn-Regular.woff') format('woff'),
		url('fonts/vazir/Vazirmatn-Regular.woff2') format('woff2');
		url('fonts/vazir/Vazirmatn-Regular.eot') format('eot');
		url('fonts/vazir/Vazirmatn-Regular.svg') format('svg');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*,html,body{
	font-family: Vazirmatn;
}

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 :: red color rgb 
Css :: how to style multiple elements at once 
Css :: css animation infinite loop 
Css :: fill background color left to right css 
Css :: table font size 
Css :: change angular material icon color 
Css :: how to disable margin collapsing 
Css :: one image position relative and other absolute 
Css :: bash list all npm processes 
Css :: vuetify input change outline color 
Css :: hover media query 
Css :: html center image 
Css :: css disable button click 
Css :: install code command on mac 
Css :: width defined by content css 
Css :: how to justify text in css 
Css :: grid-template-areas css 
Css :: css space between child elements 
Css :: grid template columns 
Css :: double border color css 
Css :: css align backround image to the right 
Css :: how to make div position top in css 
Css :: use css to replace icon with text when hover 
Css :: css prevent background scrolling 
Css :: space-evenly vs space-around 
Css :: css image size scale to fit 
Css :: flask sqlalchemy array column 
Css :: css animation linear 
Css :: what does align items center do 
Css :: css a link style 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =