+ 1
Standard width of html
What is the size of html screen? Because i confuse how to manage it when i learn css
3 Réponses
+ 3
The width is 100vw, the height is 100vh. If you want to take 50% of the width, you just do width: 50vw.
+ 3
'vw' and 'vh' are specials virtual units, representing a percentage of viewport width and height, because in css simple percentage unit ( % ) is relative to the parent ( container/wrapper ) html element, and screens resolutions / windows sizes may widely vary according to wide range of devices...
So, there isn't a "standard [absolute] width of html", but you can find information of most commonly used displays/resolutions.
Unfortunaly, mobile devices come along with a few complexification, using virtual pixel size ^^
+ 2
width of your viewport