Created
May 23, 2020 10:55
-
-
Save elganso161/0558d712be53a18e92f08b9034d2fa92 to your computer and use it in GitHub Desktop.
Исправляем ошибку отображения 100vh на мобильных
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header>HEADER GOES HERE</header> | |
<main>MAIN GOES HERE</main> | |
<footer>FOOTER GOES HERE</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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