Box Model
You might say
This card is set to 320px. Why does adding padding make it overflow its container?
The box model is the browser's rule for the space used by an element's content, padding, border, and margin.A card with 320px of content width can occupy more after horizontal padding and a border, leaving two columns unable to fit. A button's hit area is affected by these layers too. The box model explains size calculation, not whether excess content should show, clip, or scroll.
Know first
Further reading