Last updated:
5.0(1)
5 out of 5 stars
2 purchases
Featured
CSS resets help enforce style consistency across different browsers with a clean slate for styling elements. There are plenty of reset patterns to find, or you can use a more simplified reset approach:
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
Now elements will be stripped of margins and padding, and box-sizing lets you manage layouts with the CSS box model.
Tip
If you follow the Inherit box-sizing tip below you might opt to not include the box-sizing property in your CSS reset.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.