We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<body class="container"> <header>…</header> <main class="content">…</main> <footer>…</footer> </body>
.container { display: flex; min-height: 100vh; flex-direction: column; } .content { flex: 1; }
I tend to not put flexbox on the body as I usually have non-flexbox immediate children elements. In this case, you could experiment with:
body { height: 100vh; }
… and apply .container to a child div of the body element.
.container
body
WARNING: iOS may have issues with 100vh; test thoroughly.
100vh
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tend to not put flexbox on the body as I usually have non-flexbox immediate children elements. In this case, you could experiment with:
… and apply
.container
to a child div of thebody
element.WARNING: iOS may have issues with
100vh
; test thoroughly.The text was updated successfully, but these errors were encountered: