Skip to content

Instantly share code, notes, and snippets.

@wilcorrea
Forked from SkyaTura/flex-reset.css
Created December 19, 2017 22:59
Show Gist options
  • Save wilcorrea/65c2109f811772b8bbfc6bedb0a8a967 to your computer and use it in GitHub Desktop.
Save wilcorrea/65c2109f811772b8bbfc6bedb0a8a967 to your computer and use it in GitHub Desktop.
* { box-sizing: border-box; }
html, body { min-height: 100vh; margin: 0; }
div,
html,
body,
nav,
header,
hgroup,
footer,
section,
article,
ul,
li,
a,
span,
button {
position: relative;
display: flex;
flex-direction: column;
flex-shrink: 0;
}
a,
span,
button,
nav {
flex-direction: row;
}
a,
span,
button {
align-items: center;
display: inline-flex;
}
.center {
align-items: center;
justify-content: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment