K
K
Konstantin2020-11-14 13:50:44
css
Konstantin, 2020-11-14 13:50:44

Why is the font not displayed on the site?

here is the css:

@font-face {
    font-family: "Font";
    src: url(/fonts/font1.ttf);
    font-style: normal;
    font-weight: normal;
}

body {
  margin: 0;
  font-family: "Font";
  background: linear-gradient(#36D1DC, #5B86E5) no-repeat;
  background-attachment: inherit;
  color: white;
  min-height: 100vh;
}

What is wrong in the code that the font is not displayed on the site? By the way, it’s not just a standard font that comes out there, I have Franklin Gothic Medium out there, which I installed earlier, but then deleted.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Ivanov, 2020-11-14
@newdecline

And what is in the console, for sure something is written about the font?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question