I CSS Reset e Normalize uniformano gli stili di default tra browser.
Reset minimale moderno
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-text-size-adjust: 100%;
}
body {
min-height: 100vh;
line-height: 1.5;
}
img, video {
max-width: 100%;
height: auto;
display: block;
}
input, button, textarea, select {
font: inherit;
}Normalize vs Reset
- Reset: Rimuove tutti gli stili default
- Normalize: Rende coerenti gli stili tra browser