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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -