cssprotips

Creator: SatyTesting

Last updated:

5.0(1)

5 out of 5 stars

Add to Cart

Description:

Use a CSS Reset

 

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.

Demo

 

Tip

If you follow the Inherit box-sizing tip below you might opt to not include the box-sizing property in your CSS reset.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

Cody Rutscher

5 out of 5 stars

good product