0

Viewport changing problem in mobile browser.

In mobile browsers, the viewport height changes when the url bar disappear/appear. So,the elements using vh unit's dimension also changes(which is not good). How am i suppose to prevent it and normally how do people prevent it?

22nd Aug 2020, 2:02 PM
Sameer Crestha
Sameer Crestha - avatar
1 ответ
+ 1
ups i misred the question dont rely too much with vh for container, either let the content decide or use em/rem. using for min-height to fill empty space still fine though
22nd Aug 2020, 2:12 PM
Rei
Rei - avatar