responsive design - How do I make CSS grid fill window height? -
what best (simplest/most efficient) way make css grid fill height of window @ size without using overflow: hidden
or similar?
thanks!
to achieve want do, use viewport units. these based on viewport size (the size of browser window).
1vh = 1% of viewport height
1vw = 1% of viewport width
so, scale element wide/high viewport, use: 100vh / 100vw
. in case 100vh
.
Comments
Post a Comment