Skip to content

Instantly share code, notes, and snippets.

@sagarkbhatt
Created April 23, 2018 14:39
Show Gist options
  • Save sagarkbhatt/e55ad41a1e7e0661d5077e77024612ae to your computer and use it in GitHub Desktop.
Save sagarkbhatt/e55ad41a1e7e0661d5077e77024612ae to your computer and use it in GitHub Desktop.
Minimal css reset
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
margin: 0;
}
img {
height: auto;
max-width: 100%;
}
body,
h1, h2, h3, h4, h5, h6 {
margin: 0;
}
main, article, aside, footer, header, nav, section, svg {
display: block;
}
button {
-webkit-appearance: none;
background-color: transparent;
border: none;
padding: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment