use a local font css

Solutions on MaxInterview for use a local font css by the best coders in the world

showing results for - "use a local font css"
Calvin
24 Jan 2020
1<!DOCTYPE html>
2<html>
3<head>
4<style>
5@font-face {
6    font-family: myFirstFont;
7    src:url("/fonts/Harlow_Solid_Italic.ttf");
8}
9
10.harlow{
11    font-family: myFirstFont;
12}
13</style>
14</head>
15<body>
16<div>With CSS3, websites can finally use fonts other than the pre selected "web-safe" fonts.</div>
17<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>
18</body>
19</html>
20