Skip to content

International box-sizing Awareness Day | CSS-Tricks css-tricks.com · Originally posted on Pinboard

You might think of it this way: with box-sizing: border-box the padding and border press their way inside the box rather than expand the box. The result is a box the exact width you set it to be and can count on.