WEMAXA.COM Design · Development · AI · Available worldwide
Studio / Wemaxa 01
Status Active Location Worldwide Focus Web + AI Delivery Remote Response < 1 Business Day
027CSS & LayoutPlain-English glossary

Padding

In one sentence

Padding is the space between an element’s content and its border.

Padding contributes to the element’s painted box and background area. It is often used to create internal breathing room inside buttons, cards and containers.

Padding027
01Content
02Inner space
03Border
04Box size
CSS & LayoutPadding
Padding is the space between an element’s content and its border.
01

Space between content and border

Padding contributes to the element’s painted box and background area. It is often used to create internal breathing room inside buttons, cards and containers. In practical terms, Padding belongs to the presentation and layout layer. Knowing that layer is important because it tells you what the term can change, what it cannot change, and where to look when something behaves unexpectedly.

The useful questionWhen you see Padding, ask: “What part of the system or design does this term describe, and what decision does it help me make?”
Concrete example

Giving a button comfortable internal room

padding: 16px adds space between a card’s content and its border, so the card background expands with the padding.

Quick checkUse the box-model inspector to distinguish padding from external margin.
02

Where padding changes box size

Where it appearsthe tools, files or interfaces where Padding is part of the workflow,
Why you carewhen the concept needs to be identified precisely instead of being grouped with a nearby term

You do not need to memorize the term in isolation. It becomes useful when you can recognize it in the tool, browser, file or conversation where the concept is doing real work.

EXAMPLEContent
CHECKBox size
See the distinction

Padding is not margin

Padding is the space between an element’s content and its border. By contrast, Margin is the space outside an element’s border in the CSS box model. The two can appear in the same project, but they describe different parts of the work and should not be used as interchangeable labels.

03

The mistake: using padding to position unrelated elements

The common mistake is to use Padding as if it also meant Margin. That blurs two separate decisions and usually sends troubleshooting in the wrong direction. A better test is practical: Use the box-model inspector to distinguish padding from external margin.

PaddingPadding is the space between an element’s content and its border.
MarginMargin is the space outside an element’s border in the CSS box model.
04

Why internal space shapes touch targets and rhythm

In day-to-day work, Padding matters when the concept needs to be identified precisely instead of being grouped with a nearby term. The practical value is not the vocabulary itself; it is being able to identify the right control, file, setting or decision when the concept becomes relevant.

padding: 16px adds space between a card’s content and its border, so the card background expands with the padding. That example is useful because it turns the definition into something you can recognize, test and discuss with other people working on the same project.

05

Related terms worth learning next

06

Sources and further reading

Use these references when you need documentation-level detail, specifications or product-specific behavior beyond the plain-English explanation above.