> For the complete documentation index, see [llms.txt](https://plugin-everything.gitbook.io/textbox-3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugin-everything.gitbook.io/textbox-3/padding-and-size.md). Agents can also search and read this documentation through its [MCP server](https://plugin-everything.gitbook.io/textbox-3/~gitbook/mcp).

# Padding & Size

Use `Padding & Size` to adjust clearance on specific edges, set fixed dimensions, or keep the box's vertical fit steady as the text changes.

## `Individual Padding`

Start with `Style` > `Padding` for an even margin. Add `Padding Width` to both the left and right edges or `Padding Height` to both the top and bottom edges. Use `Padding Left`, `Padding Top`, `Padding Right`, and `Padding Bottom` to adjust one edge at a time.

The values add together on each edge. For example, `Padding` at 20, `Padding Width` at 10, and `Padding Left` at 5 give you 35 pixels on the left, 30 on the right, and 20 on the top and bottom. Negative values pull an edge inward. Use the individual controls with `Auto`, `Superellipse`, and `Speech`.

## `Fixed Sizing`

In `Auto`, `Superellipse`, and `Speech`, choose which dimensions stay fixed as the text changes.

| `Fixed Dimension` | What it does                                          |
| ----------------- | ----------------------------------------------------- |
| `Width`           | Sets the width in pixels. The height follows the text |
| `Height`          | Sets the height in pixels. The width follows the text |
| `Width & Height`  | Sets both dimensions in pixels                        |
| `Off`             | Fits both dimensions to the text                      |

Each fixed dimension is centered on the text fit. With `Honor Padding` off, the fixed dimensions set the body's size directly. Turn it on to add padding on the fixed axes. Automatic axes receive padding either way. Stroke and a speech tail can extend beyond the fixed body.

For a 600-pixel title background that grows taller when the text wraps, choose `Width`, set `Width` to 600, and leave `Honor Padding` off. Keep the text within the available width using After Effects' text layout controls.

<details>

<summary>Fixed sizing for stars, polygons, and masks</summary>

For `Polystar`, turn on `Fixed Size` and set the fitting square's side with `Size`. The star or polygon keeps its proportions. Rounded points can extend past the fitting square. Turn on `Honor Padding` to apply `Style` > `Padding` to the fixed square.

For `Custom`, turn on `Fixed Size` and use `Size` for the longer dimension of the fitted mask. A 2:1 mask at a `Size` of 200 fits into 200 × 100 pixels. Turn off `Fixed Size` to fit the mask inside the text bounds automatically.

</details>

## `Ascenders & Descenders`

Capture a vertical reference to keep a background steady as letters with different heights replace one another.

1. At the frame you want to use as a reference, display text with the height and depth you want to capture. For example, `Big Jumps` includes tall letters and letters that extend below the baseline
2. Open `Ascenders & Descenders` and click `Update Vertices` to capture the text's top and bottom
3. Turn on `Enable`, then edit or animate the text. The captured top and bottom guide the fit while the width continues to follow the text by default

With `Whole Layer`, the effect captures the whole layer's vertical extent. With a [Multi Shape](https://plugin-everything.gitbook.io/textbox-3/multi-shape.md) grouping, it captures each line separately. The two captures are stored separately. Recapture after a font or layout change if the box needs a new reference.

A captured line supplies the top and bottom edges for that line's fit and takes precedence over the vertical edges set by `Unify`. Fixed sizing and padding apply after the fit.

For `Auto`, `Superellipse`, and `Speech`, turn off `Make Square` if it is active before capturing.
