Modern CSS Reset
A lightweight opinionated CSS reset that normalises browser defaults, enforces border-box sizing, and improves baseline typography across all elements.
CSSby SnipCraft
css
/* Modern CSS Reset — opinionated baseline normalisation */
*, *::before, *::after {
box-sizing: border-box;
}
* {
margin: 0;
}
html {
-webkit-text-size-adjust: 100%;
tab-size: 4;
}
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;
}
ol, ul {
list-style: none;
padding: 0;
}
a {
text-decoration-skip-ink: auto;
}
table {
border-collapse: collapse;
border-spacing: 0;
}#css#layout#reset#typography