I’m reading different CSS sources to grasp a method to build up layouts and use always a standard method to starting new web project. This is my CSS starting rules with a different version I’ve found in the web, the question is there are difference between the two (eg. performance, different style, etc) ?
// one
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
// two
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}