DEV Community

StuartCreed
StuartCreed

Posted on

How to make 100vh match the height of the screen without the search bar on mobile

height: -webkit-fill-available
min-height: 100vh;
Enter fullscreen mode Exit fullscreen mode

The max height webkit above makes the 100vh exclude the height of the search bars on mobile

Top comments (0)