> ## Documentation Index
> Fetch the complete documentation index at: https://docs.makeswift.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Padding

> Padding is the space created between a box's border and its contents. This differs from margin which is used to push elements away from each other.

Boxes contain extra handles on the inside when selected. Grab any of these inner handles to change its padding, which is displayed in green.

By adjusting the padding, you can create breathing room between the box's content and its borders, preventing elements from feeling cramped or cluttered. This differs from [margin](/product/component/property-controls/margin) which is used to create space between smaller elements.

<Frame>
  <img src="https://mintcdn.com/makeswift/uAOxEZuAmqfTEc_N/images/builder/padding1.gif?s=c6addca6701e22ed53b83ee472e2f481" alt="Using padding overlays" width="800" height="450" data-path="images/builder/padding1.gif" />
</Frame>

Padding can also be applied using the padding panel in the sidebar.

<Frame>
  <img src="https://mintcdn.com/makeswift/uAOxEZuAmqfTEc_N/images/builder/padding2.gif?s=17fe66b4d02870823ed82271ed6491dc" alt="Using the padding sidebar property" width="800" height="450" data-path="images/builder/padding2.gif" />
</Frame>

You can also easily remove a box's padding by clicking the blue Padding label in the panel and selecting “Reset to base”.

<Frame>
  <img src="https://mintcdn.com/makeswift/uAOxEZuAmqfTEc_N/images/builder/padding3.gif?s=e465d0d6a50a7f674a52fdb593a131b2" alt="Reset padding to base" width="800" height="450" data-path="images/builder/padding3.gif" />
</Frame>

## Examples

### Cards

Use padding to ensure content is not touching the edge of the card. This will make the card more visually appealing and easier to read. This is also easier to manage as opposed to applying width on each individual element within the card.

<Frame>
  <img src="https://mintcdn.com/makeswift/uAOxEZuAmqfTEc_N/images/builder/padding4.gif?s=372e98b83d4075b145b9aa6193272a29" alt="Using padding to make room" width="800" height="450" data-path="images/builder/padding4.gif" />
</Frame>

## Pro tip

Avoid using [padding](/product/component/property-controls/padding) instead of
width for boxes. Width allows your element to resize responsively while
maintaining a limit to prevent it from becoming too wide on larger screens.
Padding is a hard pixel value that does not automatically get reduced and will
cause your content to be squished on smaller devices.

## Shortcuts

While dragging the handles or inputs, hold the `⌥ Option` or `Alt` key to equally change padding on both sides of an element. Hold `⇧ Shift  + ⌥ Option` or `Alt` to equally change padding for all sides.

<Frame>
  <img src="https://mintcdn.com/makeswift/uAOxEZuAmqfTEc_N/images/builder/padding7.gif?s=717e576ca849d4d78c359405879412ce" alt="⌥ Option (or Alt) hotkey" width="800" height="450" data-path="images/builder/padding7.gif" />
</Frame>

## Developer notes

You can give your team control over the padding property for any custom component using the [Style](/developer/reference/controls/style) control.
