Skip to content

Instantly share code, notes, and snippets.

@sleepless-se
Created January 12, 2022 13:01
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 sleepless-se/ea92cf417bd6b7136b6d865ad3990e76 to your computer and use it in GitHub Desktop.
Save sleepless-se/ea92cf417bd6b7136b6d865ad3990e76 to your computer and use it in GitHub Desktop.
Footerを画面下に固定する
<body>
<div class="SiteWrapper">
<header>...</header>
<main>...</main>
<footer>...</footer>
</div>
</body>
<style>
.SiteWrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
main {
flex: 1;
overflow-x: hidden;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment