← TechnologyThe essentials of

Padding: inner space enlarges a button's box

Publisher: ResumeMaker • 1 source

Published: 23 Oct 2026 08:23 · Updated: 23 Oct 2026 08:23

AI source check: 22 Oct 2026 16:54. This is not editorial approval.

In a few sentences

In brief

padding is the space between content and border. On a button, it separates the label from the edges and contributes to the element's own dimensions.

Useful to know

padding is the space between content and border. On a button, it separates the label from the edges and contributes to the element's own dimensions. [1]

This differs from margin, which creates space outside. When aiming for a larger interactive area, inspect the actual button box rather than merely increasing the distance to neighbouring elements.

Sources

For further detail and to check the information:

  1. [1] MDN — CSS padding ↗