DEV Community

Tao Liu
Tao Liu

Posted on

Fix HTML page not filling up entire viewport vertically

in CSS:

main {
  height: 100%;
}
Enter fullscreen mode Exit fullscreen mode

to

main {
  height: 100vh;
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)