When I change the language to sr-RS
, the font style changes.
Here's an example en-US
:
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap&subset=cyrillic" rel="stylesheet">
</head>
<style>
body {
font-family: 'Montserrat', sans-serif;
}
</style>
<body>
<a>Тест фонта</a>
</body>
<html>
Display font:
When change to sr_RS
the font style changes.
<html lang="sr-RS">
<head>
<meta charset="UTF-8" />
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap&subset=cyrillic" rel="stylesheet">
</head>
<style>
body {
font-family: 'Montserrat', sans-serif;
}
</style>
<body>
<a>Тест фонта</a>
</body>
<html>
How can I change the language to sr-RS, but keep the font style with en-US?
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap" rel="stylesheet">
!important
at the end of the css value? some times browsers have a default setting that over ride the costume css.