Код: Выделить всё
/* extra small */
@media screen and (max-width: 600px) {
html {
font-size: 25%;
}
}
/* small */
@media screen and (min-width: 600px) and (max-width: 960px) {
html {
font-size: 35%;
}
}
/* medium */
@media screen and (min-width: 960px) and (max-width: 1280px) {
html {
font-size: 50%;
}
}
/* large */
@media screen and (min-width: 1280px) and (max-width: 1920px) {
html {
font-size: 55%;
}
}
/* extra large */
@media screen and (min-width: 1920px) {
html {
font-size: 70%;
}
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... reen-sizes
Мобильная версия