tomayac’s avatartomayac’s Twitter Archive—№ 11,572

  1. You'd think body: { height: 100vh; } (w3.org/TR/css3-values/#viewport-relative-lengths) and you're good? Turns out, oftentimes the answer is "no," because of browser chrome (address and status bars). @Mamboleoo's neat trick to dynamically calculate the viewport 📐 to the rescue: css-tricks.com/the-trick-to-viewport-units-on-mobile/