Skip to content

Instantly share code, notes, and snippets.

@jiaming0708
Created April 11, 2022 01:52
Show Gist options
  • Save jiaming0708/dd157251a0f38e60b1c62ca15bceebaf to your computer and use it in GitHub Desktop.
Save jiaming0708/dd157251a0f38e60b1c62ca15bceebaf to your computer and use it in GitHub Desktop.
My css reset setting
html {
height: 100%;
}
body {
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
height: 100%;
}
ul {
margin-block-start: 0;
margin-block-end: 0;
margin-inline-start: 0;
margin-inline-end: 0;
padding-inline-start: 0;
}
a {
text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: unset;
}
p {
margin-block-start: 0;
margin-block-end: 0;
margin-inline-start: 0;
margin-inline-end: 0;
}
* {
box-sizing: border-box;
}
#root {
height: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment