javascript - Set the width of an element equal to monitor size WITHOUT varying on zoom -
i set width of element relationship of native resolution of viewer's monitor.
i understand css "width:100%;" exists, not happy way method deforms layout, or may behave in frustrating manner viewers want zoom in/out.
instead, i'd able have element behave "width:100%" @ zoom=100%. possible (with css or javascript)?
vw , vh units need use. viewport (monitor of user) measured using vw , vh. (viewport width , viewport height respectively.)
1vw = 1% of viewport width
vh behaving same. 100vh same 100% of viewport height.
100vw , 100vh same full monitor width , height.
Comments
Post a Comment