Created
December 6, 2022 13:38
-
-
Save bulbul84/81b998a2db65f661197948f16d5afc8f to your computer and use it in GitHub Desktop.
Simple CSS Reset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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