Tech on Staging

  • Blog

Want to Fill Display Without Excess? Good Luck

Jul 29, 2024

by

Muhamad Arif Adiputra

To be honest. I want this website to display like 100% of display and nothing more so there is no scrolling when there isn’t any content.

Sadly it is hard to do that since vh is calculated assuming it full screen without url bar exist. It is not accounting that so well that sucks.

Reference:

  • https://discourse.webflow.com/t/mobile-vh-does-not-take-into-account-native-browser-ui/150736
  • https://stackoverflow.com/questions/37112218/css3-100vh-not-constant-in-mobile-browser
Category: Software Development

←Prev
Long URL Broke UI?
Next→
Embed Image Directly in HTML File