Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to convert vh to pixel

Not necessarily screen.height * 0.65, but viewport.height * 0.65. Even though a Windows 8 app will always have the same height, regardless of the snapped state, this is an important difference in browser-based applications.

In JavaScript:

document.documentElement.clientHeight * 0.65;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #convert #vh #pixel
ADD COMMENT
Topic
Name
8+2 =