how i can find web page total height (vertical length) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

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

7th Nov 2017, 5:44 AM
sambasiva
3 Respostas
+ 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