Foldable.dev

Web Development

Simple CSS Reset Rules

This is a set of rules that:

  • Set the box-sizing default to border-box, which make widths with padding & margin values easier to work with
  • Remove any browser-specified body margin
*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
}