Answer the question
In order to leave comments, you need to log in
Why don't fonts work through font-face?
html code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="main2.css">
</head>
<body>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis, numquam?
</body>
</html>
@font-face {
font-family: 'FiraSans';
src: url('fonts/firasans/firasans-regular-webfont.eot');
src: url('fonts/firasans/firasans-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/firasans/firasans-regular-webfont.woff2') format('woff2'),
url('fonts/firasans/firasans-regular-webfont.woff') format('woff'),
url('fonts/firasans/firasans-regular-webfont.ttf') format('truetype'),
url('fonts/firasans/firasans-regular-webfont.svg#Fira Sans') format('svg');
font-weight: normal;
font-style: normal;
}
body {
font-size: 24px;
font-family: 'FiraSans';
}
Answer the question
In order to leave comments, you need to log in
check the name of the fonts and most likely the path is not correct, look through the fire bug, you may need to add ../ or /
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question