How to calculate vh and vw according to the size of the design draft

how to calculate vh and vw according to the size of the design draft, for example, the design draft is designed according to 1920-1080

May.11,2021

Hello, html {font-size:100 / (1920 / 100) vw} . If the design draft is 1920 wide, it is 19.2 remoul. similarly,


it is recommended to use rem . vw and vh have compatibility problems


https://github.com/evrone/pos.
https://www.w3cplus.com/css/v.

Menu