In a nutshell
Padding controls the inner spacing between an element's boundary and its content. You can apply a single value to all four sides at once, or set each side, top, right, bottom, and left, independently to control its visual density.
Padding defines the visual space inside an element*link to elements page*, between its container's visible edge and the content within it. It directly controls the visual breathing room of an element, so more padding makes it feel spacious while less padding creates a tighter, more compact look. It can either be set evenly on all four sides, and have different values on each side to achieve unique layouts.
Padding accepts numeric values in px (pixels) or % (percentage):
The minimum value is 0 (no inner spacing). There is no enforced upper limit, though large values will push content outside the portal page's visible area.
| Mode | How it works | Description |
| Uniform | One value applied equally to all four sides. | Provides consistent spacing on all sides. Ideal for: Icons, cards, smaller text blocks, etc |
| Per-side | Individual values for top, right, bottom, and left. | Supports asymmetric spacing, for example, more breathing room at the top and bottom than on the sides. Ideal for: Hero sections, frames, complex text blocks with multiple elements, etc |
The examples below show how padding values affect the appearance of a Image element. The same visual behavior applies to all elements that support padding.
) and enter individual values in pixels or percentage for each side, T (top), R (right), B (bottom), and L.Padding is available on the primitives and composite elements listed below. Apart from this, it is also listed as a style property in all presets.
Padding always controls the inner spacing between the element's boundary and its content. For presets such as Navigation Header and Hero Section, padding can be applied to the outer container and to the inner sections individually.