masakudamatsu / template

Template code for making a website
MIT License
1 stars 0 forks source link

Set the box sizing to include border width and padding #14

Closed masakudamatsu closed 6 years ago

masakudamatsu commented 6 years ago

We use

*,
*::before,
*::after {
  box-sizing: border-box;
}

by following this article by CSS Trick for detail. These lines of code will prevent content-box or padding-box to be used elsewhere in CSS code. But I personally see it unlikely to use these values.

masakudamatsu commented 6 years ago

The single colon is now replaced with double colons for the before and after pseudo selectors.