Skip to content

Instantly share code, notes, and snippets.

@LucaRosaldi
Last active December 17, 2022 07:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucaRosaldi/1b36f58827430b85205bebcf247b8c53 to your computer and use it in GitHub Desktop.
Save LucaRosaldi/1b36f58827430b85205bebcf247b8c53 to your computer and use it in GitHub Desktop.
CSS: Modern Reset
/* -------------------------------------------*/
/* RESET
/* -------------------------------------------*/
*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html, body {
height: 100%;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
body {
width: 100vw;
overflow-x: hidden;
-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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment