Created
October 20, 2021 19:32
-
-
Save fitsum/6f2214ec9f8f146360d3aced827de588 to your computer and use it in GitHub Desktop.
elad schecter's reset CSS - https://css-tricks.com/an-interview-with-elad-shechter-on-the-new-css-reset/
This file contains 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
/*** The new CSS Reset - version 1.2.0 (last updated 23.7.2021) ***/ | |
/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */ | |
*:where(:not(iframe, canvas, img, svg, video):not(svg *)) { | |
all: unset; | |
display: revert; | |
} | |
/* Preferred box-sizing value */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* | |
Remove list styles (bullets/numbers) | |
in case you use it with normalize.css | |
*/ | |
ol, ul { | |
list-style: none; | |
} | |
/* For images to not be able to exceed their container */ | |
img { | |
max-width: 100%; | |
} | |
/* Removes spacing between cells in tables */ | |
table { | |
border-collapse: collapse; | |
} | |
/* Revert the 'white-space' property for textarea elements on Safari */ | |
textarea { | |
white-space: revert; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment