box sizing with margin code example Example: box sizing html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; }