yoko yoko - 27 days ago 17
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

Just use:

body{
   height:100vh;
}

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

Comments