176
rated 0 times
[
178]
[
2]
/ answers: 1 / hits: 54929
/ 11 Years ago, thu, august 22, 2013, 12:00:00
I have the max-height of an element as 65vh. I need to convert it to pixels in my JavaScript to see whether an image can fit there or if I need to shrink/crop it. (am doing win8 App development).
Will this work?
100 vh = screen.height
therefore 65vh in pixels is screen.height *0.65
More From » css