세련된 css reset
- Nest
- Development
- Category
- html/css
- Hit
- 412
- Star
- 0
코드도 적어지고 괜찮은 모습같아 보인다.
/*** The new CSS Reset - version 1.0.0 (last updated 8.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) */
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;
}
출처: https://github.com/elad2412/the-new-css-reset/blob/main/css/reset.css