If an Elementor page looks almost right but something feels off, it’s usually spacing: headings too close to paragraphs, containers that feel cramped, odd gaps on mobile. Most of that comes down to how padding, margin and gap are used. This guide covers what each one does, when to use which, the mistakes I see most, and the simple 4px spacing system I use on every site. It’s for V3 flexbox containers; tested on Elementor 4.3, October 2026.
For layouts that already follow one spacing system, Element UI, the Elementor component library, builds every ready-made Elementor component on the same scale.
What’s the difference between padding, margin and gap in Elementor?
Padding is the space inside an element, margin is the space outside it, and gap is the space between the items inside a container. Gap is set once on the parent; padding and margin are set on each element.
| Padding | Margin | Gap | |
|---|---|---|---|
| The space it controls | Inside the element, between its content and its edge | Outside the element, between it and its neighbors | Between the items inside a container |
| Where you set it | On the element itself | On the element itself | On the parent container |
| Where it is in Elementor | Advanced > Padding | Advanced > Margin | Layout > Gaps |
| Use it for | Breathing room inside containers, cards and buttons | Rare one-off adjustments | Spacing items evenly, in rows and stacks |
Padding, margin and gap in plain language
Before you touch any settings, it helps to understand what you are adjusting.
The difference between padding and margin
- Padding is the space inside a container or widget, between the content and its border.
Think of it as breathing room inside it’s box. - Margin is the space you can add manually outside a container, to move containers or widgets further away from one another.
If you are changing the space around the content inside one container or widget, that is padding.
If you are moving one container or widget away from another, that is margin.
What gap does inside containers
When you use flexbox containers, Elementor gives you a third spacing control called gaps. It’s the CSS gap property, so it never adds space around the outside of the container, only between its items.
Gap controls the space between items inside a container.
For example:
- The distance between cards in a features row
- The space between a heading, paragraph and button that are stacked vertically
- The space between rows that stack on mobile
Instead of adding margin to every child widget, you set one gap value on the parent container and Elementor spaces the items evenly.
Where are padding, margin and gap in Elementor?
You can control spacing on:
- Containers (Flexbox)
- Widgets (headings, buttons, images and so on)
For each of these, spacing lives under the Advanced tab.
- Advanced → Margin
- Advanced → Padding
You can:
- Use linked values so all sides change together
- Unlink values to set top, right, bottom and left separately
- Use different values per device (desktop, tablet, mobile)
On containers with Flexbox enabled you also have:
- Layout → Gaps (for space inside containers between child items)
When should you use padding vs margin in Elementor?
A lot of messy layouts come from mixing padding and margin at random. Here is a simple rule of thumb.
Use padding for internal breathing room
Use padding when you want to add space inside a container or widget, so content is not touching the edges.
Good use cases:
- Container padding so content has room to breathe
- Padding inside a feature card or FAQ header
- Extra space inside a button
Example values:
- Container padding: 120px top and bottom on desktop, 60px on mobile
- Card padding: 24px all around inside a feature box
- Button padding: 14px vertical, 24px horizontal
Padding defines the comfortable area inside an element. It is about how content sits within a box.
Use margin only when you need to adjust one thing
I only use margin at very specific times, when something needs a small adjustment that gap can’t make. For the regular space between items, gap on the parent does the job better.
Typical uses:
- Tightening the space under one particular heading
- Pushing one item a little further from the rest
Never set margin on both elements that sit next to each other. If you do use it, let one of them control the space between, so the layout stays predictable.
How do you use gap, padding and margin together?
When you combine gap, padding and margin in a structured way, Elementor spacing becomes much easier.
Start with padding on the parent
First, set padding on your main containers.
For example:
- Hero container: 120px padding top and bottom on desktop, 80px on tablet, 60px on mobile
- Left column container holding your heading, text and button: 0px padding
This creates consistent internal breathing room without touching margins yet.
Use gaps to space items inside containers
Next, use gaps on your Flexbox Containers to handle the regular space between items.
Examples:
- Hero container: 100px gaps between the left and right column containers
- Left column container holding your heading, text and button: 32px gaps
- Row of logos: 20px gaps between image widgets
Gap is perfect for:
- Feature grids
- Icon rows
- FAQ items in a stack
- Basically any container that need an even distance between them
If you set gap correctly, you rarely need to add margin to every child widget. One control on the parent container handles it.
Use margin only for fine tuning
Once padding and gap are doing most of the work, margin becomes a tool for specific adjustments.
Use margin when you want to:
- Tighten the space under one particular heading
- Separate a special call to action block from the content above it
Think of margin as the exception, not the rule. If you find yourself adding margin everywhere, stop and see if gap or padding should be doing that job instead.
What spacing mistakes should you avoid?
These are the ones I see most often when I open someone else’s Elementor page:
- Padding on every widget. Each heading, text and button gets its own padding, so changing the spacing means changing every widget. Set gap on the container instead.
- Containers left on the default padding. A new container starts with 10px of padding, so a page where some containers keep it and others are set to 0 never lines up. Decide on container padding once and set it everywhere.
- Padding used where gap should do the job. Padding pushes content in from the edges; it isn’t for spacing items apart. If you’re adding padding to space out cards or stacked widgets, use gap on their container.
- Margins on every child. Same problem as padding on every widget: one gap value on the parent replaces them all.
If a container won’t stretch the way you expect, the cause is usually its parent’s width or padding, which Elementor container not full width walks through.
How do you build an Elementor spacing system?
Random spacing values like 13px here and 47px there quickly make a site feel messy. A simple spacing system keeps everything consistent. I use a 4px scale on every site, V3 and V4.
Choose a spacing scale
Pick a small base spacing value, for example:
- 4px
- 8px
Then build a scale from that base, such as:
- 8px
- 16px
- 24px
- 32px
- 48px
- 64px
These are all multiples of your base unit, which keeps your rhythm consistent.
Apply your scale to common patterns
For example:
- Container padding top and bottom: 120px desktop, 80px tablet, 60px mobile
- Inner container gaps: 32px desktop, 32px tablet, 24px mobile
- Gaps between stacked items inside a feature box: 12px or 16px
- Padding inside a feature box: 24px
You do not need to follow this perfectly. The key is to use a small set of values and avoid random numbers that break the rhythm.
If you use components from Element UI, you will notice that spacing already follows a consistent scale. You can use those layouts as a reference for your own system.
How Element UI handles spacing for you
Element UI is built to remove most of the guesswork around Elementor padding, margin and gap. For more on how flexbox containers lay out their items, see the Elementor flexbox containers guide.
Inside the component library:
- Each component uses a consistent spacing scale
- Parent containers handle large vertical and horizontal spacing with gaps
- Inner layouts use padding and gaps instead of random margins
- Mobile spacing is already tuned.
When you paste a hero, services or pricing component into a site, the spacing is already set on the same scale. You can tweak values to match your style instead of fighting messy spacing from scratch.
Frequently asked questions
What is the difference between Elementor padding and margin?
Padding controls the space inside an element, between the content and its border. Margin is the additional space we can manually add to an element to move one thing closer or further from another.
When should I use gap instead of margin in Elementor containers?
Use gap when you want consistent space between items inside a Flexbox Container, such as two inner containers inside a hero section. Or space between cards in a row or a vertical stack of heading, text and button. Use margin only when you need to adjust a single element slightly, like adding extra space above a special section.
What are good Elementor padding values to start with?
Pick a simple spacing scale and reuse it. For example: 4px, 8px, 16px, 24px, 32px, 48px and 64px. What matters most is being consistent across your site. A hero section on one page should share the same spacing rules as a hero on another page. Or all feature cards in a website should share the same gaps between widgets.



