Standard width of html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Standard width of html

What is the size of html screen? Because i confuse how to manage it when i learn css

18th Jan 2017, 7:50 PM
pestilence me
pestilence me - avatar
3 Answers
+ 3
The width is 100vw, the height is 100vh. If you want to take 50% of the width, you just do width: 50vw.
19th Jan 2017, 1:14 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 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 ^^
19th Jan 2017, 8:30 AM
visph
visph - avatar
+ 2
width of your viewport
18th Jan 2017, 8:41 PM
Andreas K
Andreas K - avatar