Skip to content

Instantly share code, notes, and snippets.

@olegchursin
Created December 6, 2021 21:11
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 olegchursin/b7fb822d7ba9ed2ce3dce55613815638 to your computer and use it in GitHub Desktop.
Save olegchursin/b7fb822d7ba9ed2ce3dce55613815638 to your computer and use it in GitHub Desktop.
Modern CSS reset (Josh Comeau's)
/*
Josh Comeau's Modern CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::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, #__next {
isolation: isolate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment