W3Schools box sizing code example
Example 1: box sizing
html {
box-sizing: border-box;
}
*,
*:before, *:after {
box-sizing: inherit;
}
Example 2: box sizing border box
*{
box-sizing: border-box;
}
html {
box-sizing: border-box;
}
*,
*:before, *:after {
box-sizing: inherit;
}
*{
box-sizing: border-box;
}