Created
October 28, 2024 03:27
-
-
Save shlroland/bfdc5da807c612b79c59a19029ea9fbe to your computer and use it in GitHub Desktop.
Josh's Custom 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
| /* | |
| Josh's Custom CSS Reset | |
| https://www.joshwcomeau.com/css/custom-css-reset/ | |
| */ | |
| *, *::before, *::after { | |
| box-sizing: border-box; | |
| } | |
| * { | |
| margin: 0; | |
| } | |
| 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; | |
| } | |
| p { | |
| text-wrap: pretty; | |
| } | |
| h1, h2, h3, h4, h5, h6 { | |
| text-wrap: balance; | |
| } | |
| #root, #__next { | |
| isolation: isolate; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment