Skip to content

Instantly share code, notes, and snippets.

@bulbul84
Created December 6, 2022 13:38
Show Gist options
  • Save bulbul84/81b998a2db65f661197948f16d5afc8f to your computer and use it in GitHub Desktop.
Save bulbul84/81b998a2db65f661197948f16d5afc8f to your computer and use it in GitHub Desktop.
Simple CSS Reset
/* makes sizing simpler */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* remove default spacing */
/* force styling of type through styling, rather than elements */
* {
margin: 0;
padding: 0;
font: inherit;
}
/* dark mode user-agent-styles */
html {
color-scheme: dark light;
}
/* min body height */
body {
min-height: 100vh;
}
/* responsive images/videos */
img,
picture,
svg,
video {
display: block;
max-width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment