CSS reset
noun
say it: “SEE-ESS-ESS REE-set” /ˌsiːɛsˈɛs ˈriːsɛt/
A few rules at the top of a stylesheet that undo the browser default styles you don't want, such as the gap around the page, so every page starts from the same place.
What is a CSS reset?
A CSS reset is a short set of rules at the very top of a stylesheet that clears away the browser's default styles you don't want, such as the page margin, so every page starts from the same place. A small reset keeps the useful defaults and removes only what gets in the way.
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
In a sentence
- “My CSS reset removed the white gap around the page and made every photo fit its box on a phone.”
Level: Apprentice · More CSS terms at this level
Updated