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 :: How to prevent text overflow 
Css :: vertically center an svg 
Css :: remove scrollbar css 
Css :: center position absolute 
Css :: css first 
Css :: alternatives to display none 
Css :: align div right 
Css :: how to make image a circle css 
Css :: css overflow truncate 
Css :: italic text css 
Css :: striped tables css 
Css :: css input spaces between 
Css :: change mat icon size 
Css :: change scrollbar width and height in css 
Css :: use text-align to justify the paragraph style 
Css :: Remove Or Hide Default Spinner Input Number 
Css :: css change image color 
Css :: load css file flask 
Css :: css remove scrollbar from body 
Css :: tailwind backdrop 
Css :: css flex reverse order 
Css :: make text bigger html5 
Css :: add alpha value to css color variable 
Css :: repeat with auto-fit 
Css :: css animation animated element goes back to previous state 
Css :: how to get the length of element with display none 
Css :: text align left in span 
Css :: circle background image css 
Css :: backdrop filter property for safari not working 
Css :: hvad er css 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =