It is easy to customize spacing into sections, rows and modules with Divi Spacing Options.
Spacing is an important element in web design. It helps organize your content and keep things clear and balanced.
With Divi, it is easy to customize spacing in Sections, Rows, Columns and Modules with Divi Spacing Options.
In this guide, we will review all the spacing options available within the Divi Visual Builder.
Margin- Margins control the space around an element
Filling- Filling controls the space within an element
In the Divi Spacing Options, you can adjust both. The higher the number, the more space there will be. The smaller the number, the less space there will be.
Examples:
Use the margin option to add or create space between multiple columns in a row.
Use the margin option to add or create space between multiple modules in a column.

Examples:
Adding fill to a row would create space around the columns it contains.
Adding fill to a column would create space between its edges and any element it contains.
If you want to add space within an element and create more space between the content of the item and its edge, then use fill.

Open the item's configuration window by clicking the gear icon.
Go to the Design tab.
Deploy the Spacing Settings group.
Add Filling in Divi
Open the item's configuration window by clicking the gear icon.
Go to the Design tab.
Deploy the Spacing Settings group.
Use the fill option to add or change the filling default values.
As with the margin, to add filling, type a numerical value or use the up and down arrows to adjust the filling to greater or lesser.

If you want the values above and bottom to be the same, click the string icon between them to link them.
Hover your cursor over the margin or fill text.
Click the phone icon.
Three tabs will appear:
Desk
Tablet
Telephone
Navigate between them to set specific margins and fillings for each device type.
By default, mobile spacing will inherit what is configured in desktop view. However, with this option you can set unique margins for mobile devices.
To adjust these values, navigate to: Theme Customer → General Settings → Design Settings
Width of Space between Columns
Value 1 - no space (margin) between columns
Value 2 - 3% right margin between columns
Value 3 - 5.5% right margin between columns
Value 4 - 8% right margin between columns
Note: You can also set the width of the row space individually within the configuration of each row.
You can increase or decrease this value by typing a number or dragging the slider. This will increase or decrease the default height of sections in Divi.
You can increase or decrease this value by typing a number or dragging the slider. This will increase or decrease the default height of rows within Divi.
Drag the slider or type a numeric value to adjust the settings.
Absolute length units
Relative units of length
The absolute length is a fixed unit, so it will not change when the browser is resized, as it is not relative to any other element.
Rarely, if you should set horizontal filling in pixels, unless you plan to adjust that width at all the breakdown points needed for all mobile devices.
This is not a good practice in responsive web design.
To learn more about units of measurement in web design, read our Guide to Understanding and Applying CSS Length Units in Divi.
Blank space is used to balance the layout of a page and organize content visually appealing way. Margins and fillings help you create room between elements so that the design is balanced and without disorder.
Understanding the negative margins in Divi Spacing Options
Although this may be useful in some cases, using other methods (such as position or translation transformation) is better practice for positioning elements on the page.
Important note:Negative values for margins should be avoided unless you have a good understanding of the impact these values can have on your design.
5 Creative Ways to Use Integrated Margin and Space Controls