yoko yoko - 1 year ago 102
Sass (Sass) Question

Height 0 on Body

I always get height: 0 on the body, Why this happens?

Either I use height, min-height, etc.

enter image description here

Answer Source

Just use:

body{
   height:100vh;
}

This will force the body to 100% viewport height regardless of the page contents.