Skip to content

Instantly share code, notes, and snippets.

@elganso161
Created May 23, 2020 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elganso161/0558d712be53a18e92f08b9034d2fa92 to your computer and use it in GitHub Desktop.
Save elganso161/0558d712be53a18e92f08b9034d2fa92 to your computer and use it in GitHub Desktop.
Исправляем ошибку отображения 100vh на мобильных
<header>HEADER GOES HERE</header>
<main>MAIN GOES HERE</main>
<footer>FOOTER GOES HERE</footer>
body {
display: flex;
flex-direction: column;
margin: 0;
min-height: 100vh;
/* mobile viewport bug fix */
min-height: -webkit-fill-available;
}
main {
flex: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment