0
Why font doesn't import?
5 Answers
+ 1
Mostafa Sarmad
In your code, you missed a semicolon in the body section of css, that's why it was not working.
See this code example
https://code.sololearn.com/WO8hy1vTkM7l/?ref=app
0
You need to use @font-face declaration
0
Mostafa Sarmad
The url is incorrect.
It should have &display=swap at the end.
Here is a correct import statement.
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
0
Failed. I used this code before, no problem. But now I don't know why it is not implemented
0
Tnx alot Hanuma Ukkadapuđ