In general, the question in the title :)
- CSS media queries, for example. - check1st
- oneIf you want smoothly, then here it is in detail painted habrahabr.ru/company/mailru/blog/315196 - Dmitry Kozlov
- You have been given several answers. If someone approached you, can you mark any of the answers as accepted? If no one is suitable, then please leave a clarifying comment than none of the answers came up to you. - Vadim Ovchinnikov
|
2 answers
either specify the size of the text in 'em', or relative to the width of the browser 'vw' or height of the 'vh'. Consider that in this case, the text can be both very large and very small; to restrict actions, it is better to use @media queries, which will change this parameter when a certain browser size is reached.
|
@media (min-width: 1200px) { body { font-size: 0.9rem; } } @media (max-width: 1199px) and (min-width: 900px) { body { font-size: 0.8rem; } } @media (max-width: 899px) { body { font-size: 0.7rem; } } - @media (min-width: 1200px) {body {font-size: 0.9rem; }} - this request is superfluous, since body {font-size: 0.9rem} - is used in all requests not listed below - Yuri
- @ Yuri, but now is not superfluous - Yuri
- ))) not now. - Yuri
|