Divi 5 relies on native CSS Flexbox. The Horizontal Gap and Vertical Gap options control the space between flexbox items (horizontal and vertical).
In most common situations, the Horizontal and Vertical Gap options are set on the parent element.
Horizontal Gap
Control the space in between flexbox items on the horizontal axis.
Edit the Row's settings.
Go to the Design tab β Layout β Horizontal Gap.
Change the default 5.5% value.
Vertical Gap
Control the space in between flexbox items on the vertical axis.
Edit the Row's settings.
Go to the Design tab β Layout β Vertical Gap.
Change the default 40px value.
(optional) Change the Layout Direction to Column.
Note: You can use any of the accepted unit values.