how i can find web page total height (vertical length) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how i can find web page total height (vertical length)

7th Nov 2017, 5:44 AM
sambasiva
3 Answers
+ 13
Use 100vh(viewport height). Similar to 100% but it shows the 100% of the height of the viewport (i.e, the screen) and not of the parent element. Eg- div{ height:100vh; }
7th Nov 2017, 10:50 AM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 7
Use guess and check, eventually you will get a matching height. Or be lazy and just use 100%
7th Nov 2017, 6:22 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
If you want to find viewport height in pixel viewportHeight = window.innerHeight; https://code.sololearn.com/W4Mbn5gSd2fc/?ref=app
7th Nov 2017, 11:41 AM
Calviղ
Calviղ - avatar