Search
 
SCRIPT & CODE EXAMPLE
 

CSS

use a local font css

<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
    font-family: myFirstFont;
    src:url("/fonts/Harlow_Solid_Italic.ttf");
}

.harlow{
    font-family: myFirstFont;
}
</style>
</head>
<body>
<div>With CSS3, websites can finally use fonts other than the pre selected "web-safe" fonts.</div>
<p><b class="harlow">Note:</b> Internet Explorer 8 and earlier, do not support the @font-face rule with the WOFF format (only support for EOT format).</p>
</body>
</html>
Comment

how to use local fonts in css

<!DOCTYPE html>
<html>
<head>
<style>
@font-face {
    font-family: myFirstFont;
    src:local("fontsHarlow_Solid_Italic.ttf");
}

.harlow{
    font-family: myFirstFont, sans-serif;
}
</style>
</head>
<body>
<div>With CSS3, websites can finally use fonts other than the pre selected "web-safe" fonts.</div>
<p><b class="harlow">Note:</b> Internet Explorer 8 and earlier, do not support the @font-face rule with the WOFF format (only support for EOT format).</p>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: collapse border css 
Css :: overlay color on image css 
Css :: box-shadow in css 
Css :: how to open link in same tab in chrome 
Css :: how many px is iphone 12 pro max css 
Css :: css outline offset 
Css :: how to center a div with position absolute 
Css :: put a border only on bottom 
Css :: add shadow to iframe 
Css :: text stroke css 
Css :: border radius color 
Css :: text dont skip next line css 
Css :: setting z index on before after pseudo classes 
Css :: css select all immediate children 
Css :: css flex bottom 
Css :: pagination in css 
Css :: css gradient background 
Css :: css disabled tag hover style 
Css :: add css file through jquery 
Css :: fonmt family css 
Css :: css border-bottom only length of text 
Css :: what is a max and min width media query 
Css :: how to change link color hover button text 
Css :: important css 
Css :: place two div elements next to each other 
Css :: css linkup 
Css :: how to make border hover effect in css 
Css :: responsive flexbox 
Css :: htaccess file extension 
Css :: make footer stick to bottom without overlap over other elements 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =