Closed blade-sensei closed 4 years ago
Good explanation about height 100% and vh https://la-cascade.io/pourquoi-height-100-ne-marche-pas/ (french)
vh is used only for height prop, the viewport is nutshell the screen size (for mobile it's different) but pourcent refers the POURCENT relative to the parent. while 100vh is relative to the screen/viewport
Good explanation about height 100% and vh https://la-cascade.io/pourquoi-height-100-ne-marche-pas/ (french)
Summary
vh is used only for height prop, the viewport is nutshell the screen size (for mobile it's different) but pourcent refers the POURCENT relative to the parent. while 100vh is relative to the screen/viewport