What is a CSS reset?
Every browser has its own default styles, like margins on body and sizes of headings. A CSS reset removes them, so you start from the same base in all browsers.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
Normalize.css is a softer idea: it keeps the useful defaults and only fixes the differences between browsers. Modern projects often use a small reset with box-sizing: border-box. See CSS Box Model.
Learn more about the similar topics:
| Tutorials |
|---|
| CSS Introduction |
| CSS Inclusion |
| CSS Syntax |
| CSS Comments |
| CSS Variables |
| List of common CSS Properties |
| Exercises & Assignments |
|---|
| No Content Found. |