About height in css

Hi everyone

Sometime when I post some codepen and when I wrote his

height:100vh;

some people use to laugh and say is not usefull so now I have a question

look this codepen
https://codepen.io/alpha_66/pen/KKEVeQK?editors=1100


in the body I put
height:100vh;
my div is on the center on the page so now Try to comment in the body

height .
question why my blue div is not is the center on the page ????

Kevin Powell make a video about it he say is a mistakes some begenners use to make

thanks by advance
Was this page helpful?