DEV Community

Discussion on: Don't use 100vh for mobile responsive

Collapse
 
ryanpearson profile image
Ryan Pearson • Edited

This is a good option if you DONT need to use css Calc() function
ex:

body {
min-height: calc(100vh-70px);
/* mobile viewport bug fix */
min-height: -webkit-fill-available;
}

The webkit solution would not take into account the 70px adjustment

I've used the JS solution described in this post and it seems to be the best available option at the moment (until the new dynamic viewport units are adopted)

Collapse
 
nirazanbasnet profile image
⚡ Nirazan Basnet ⚡

Thanks for using this solution 👍

Some comments have been hidden by the post's author - find out more