M
M
Mrako_bes2019-03-08 14:28:18
css
Mrako_bes, 2019-03-08 14:28:18

Why doesn't the font change?

I looked at a couple of lessons on how to add a font not through google fonts, but I ran into a problem: the fonts are not connected.
Here is the code:

@font-face {
  font-family: "SegoeWP";
  src: url("fonts/Segoe WP/ofont.ru_Segoe WP.eot");
  src: url("fonts/Segoe WP/ofont.ru_Segoe WP.eot?#iefix") format("embedded-opentype"),
  url("fonts/Segoe WP/ofont.ru_Segoe WP.woff") format("woof"),
  url("fonts/Segoe WP/ofont.ru_Segoe WP.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

Styles are connected correctly. In the main css I add fonts like this:
body {
  font-family: "SegoeWP";
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-03-08
@Mrako_bes

if the fonts are stored in the fonts folder.
Just replace url("fonts/ with url("../fonts/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question