Skip to content

Instantly share code, notes, and snippets.

@myl7
Last active January 19, 2022 11:51
Show Gist options
  • Save myl7/7af84d97e246b733c82dd414f49dfd29 to your computer and use it in GitHub Desktop.
Save myl7/7af84d97e246b733c82dd414f49dfd29 to your computer and use it in GitHub Desktop.
Modern CSS reset
/**
* Modern CSS reset at https://gist.github.com/myl7/7af84d97e246b733c82dd414f49dfd29
* From Josh's Custom CSS Reset at https://www.joshwcomeau.com/css/custom-css-reset/
* Public domain
*/
*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html, body {
height: 100%;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
#root {
isolation: isolate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment