Skip to content

Instantly share code, notes, and snippets.

@darnocer
Last active August 13, 2022 15:55
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 darnocer/932bc3d23f2fef984107047978957f67 to your computer and use it in GitHub Desktop.
Save darnocer/932bc3d23f2fef984107047978957f67 to your computer and use it in GitHub Desktop.
CSS Boilerplate Reset

Boilerplate CSS Reset Code For New Projects

The following CSS is a good "reset" for new projects

*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: inherit;
}

html {
// defines 1 rem
font-size: 62.5%;
}

body {
box-sizing: border-box;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment