Kualo / docs
On this page

Understanding spacing options in ProSite

ProSite gives you two types of spacing controls - padding and margin - to help you position and size elements on your pages.

2 min read Updated 11 Jun 2026

ProSite gives you two types of spacing controls - padding and margin - to help you position and size elements precisely on your pages.

Spacing options

When you click an element, the spacing options appear in the right-hand menu.

Spacing options panel

You can adjust spacing uniformly on all sides, or set each side independently. To apply the same value to all sides, tick the Use same values checkbox.

What is the difference between padding and margin?

Diagram showing padding inside an element and margin outside it

  • Padding adds space inside the element, between its content and its border.
  • Margin adds space outside the element, pushing it away from neighbouring elements.

Spacing values are measured in pixels (px).

When should I use padding vs margin?

There is no hard rule, but a useful general guide is:

  • Elements (text, images) - use margin to control the gap between them, and rarely use padding. Buttons are a notable exception: they almost always need padding to give the label room to breathe.
  • Layouts - use padding to control the space between the layout's edge and its contents, and use margin more sparingly.

The image below shows a typical page layout with padding and margin applied:

Example page layout showing padding and margin in use

Practical examples

Adding padding to a button

Here is a button with no padding. Because the button has automatic height, the label sits right against its edge.

After adding 20px of padding to the top and bottom, and 50px to the left and right, the button looks much more balanced:

Button with padding applied

Here is how those values appear in the spacing panel:

Spacing panel showing 20px top/bottom and 50px left/right padding

You can also see the padding highlighted in the editor view:

Editor view showing padding highlighted around the button

Adding margin between buttons

If you duplicate the button to create a second one, both buttons sit directly alongside each other with no gap:

Two buttons with no margin between them

Adding a 10px margin to each button pushes them apart. Because each button contributes 10px, the total gap between them is 20px:

Two buttons with 10px margin applied to each

Spacing panel showing 10px margin on the button

Checking the mobile view

Switching to mobile view reveals a problem. The containing layout is set to stack its children vertically on smaller screens, so the buttons now sit directly on top of each other because no top or bottom margin was set:

Mobile view showing buttons stacked with no vertical gap

Adding 10px of top and bottom margin fixes this:

Spacing panel showing 10px top and bottom margin

The buttons are now nicely spaced on mobile too:

Mobile view showing buttons with even vertical spacing

The spacing panel also includes Scale Factors. These let you increase or reduce padding and margin on different device sizes. In the example above, the scale factor is set to 80%, so the padding and margin on mobile are 80% of the desktop values - a useful way to keep things proportional on smaller screens.

Padding on a layout

In this example, a nested layout has a semi-transparent background containing some text. Without padding, the text fills right to the edge of the layout.

Layout with text filling to the edge

Adding 50px of padding to the layout pushes all the text 50px in from the edge. Adding 30px of bottom margin to the heading creates a clear gap between the heading and the body text:

Layout with 50px padding and 30px heading margin applied

Was this helpful?
Your feedback helps us find gaps in the docs.
Still need a hand?
Real people, around the clock - start a chat or open a ticket and we'll help you put it right.