Skip to content

Instantly share code, notes, and snippets.

@himan72
Created September 13, 2018 20:36
Show Gist options
  • Save himan72/4b79ccaa5cf6c2542c8580503bca0312 to your computer and use it in GitHub Desktop.
Save himan72/4b79ccaa5cf6c2542c8580503bca0312 to your computer and use it in GitHub Desktop.
Normalizing Cross-browser Flexbox Bugs
.Site {
display: flex;
flex-direction: column;
height: 100vh; /* 1 */
}
.Site-header,
.Site-footer {
flex-shrink: 0; /* 2 */
}
.Site-content {
flex: 1 0 auto; /* 2 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment