+ 1

To count the % from screen, and not from 16px for font (as example), how can I do it?

Or should I do some special code for checking the size of user's screen? Where can I get information for auto adaptation? Or it's preferable to create mobile version of site? Or mobile browser already can adapt the pages? Thank you for your answer.

3rd Apr 2017, 9:31 PM
Oleksandr Medyanskyi
Oleksandr Medyanskyi - avatar
2 Respostas
+ 1
To get the size of the screen, you can use jQuery. (screen.height and screen.width commands) As for the other questions I do not know.
3rd Apr 2017, 10:12 PM
iBrandon
iBrandon - avatar
0
In new lessons I've noticed that it useful to size text with a keywords like 'small', 'x-small', 'xx-large' etc. It's more appropriate... And I also can load fonts from Google server.
4th Apr 2017, 1:34 AM
Oleksandr Medyanskyi
Oleksandr Medyanskyi - avatar