Welcome to Day 22 of our Divi 100 Marathon. Keep tuning in for 100 days in a row of awesome Divi resources as we count down to the amazing release of Divi 3.0 on the final day of the series!
When it comes to using Divi’s built-in Advanced Design Settings there are three controls that, once understood, can be used to stunning effect over and over again. They are your margin, padding, and gutter controls. First, let’s tackle margin and padding using the diagram below. The best way to describe the difference between margin and padding is that padding is the inner space of an element while margin is the outer space of an element.
The two images below are a great illustration of the difference between padding and margin. The first image is a button with 20px of padding added to all sides. As you can see, it has increased the space within the button. The second example is that same button with the 20px added instead to its margin, opening up space around the button instead of inside it.
Gutter is the same thing as margin, but the term is used to refer to the space between columns. So when you have a Divi row with multiple columns, like the image below, the space between each column is your gutter. And you will find controls for it in the settings for that row.
Of the three–margin, padding, and gutter–it seems to me that margin and gutter are often under utilized by many users. For some reason the idea of padding seems to instantly click with a lot of people, but the various uses for margin and gutter controls do not. That’s why in today’s post we’re going to show you five creative ways to utilize Divi’s built-in margin and gutter controls to achieve more interesting layouts.
5 Creative Ways to Use Divi’s Built-in Margin & Gutter Controls
1. Staggered Elements
To achieve this staggered image effect nagivate to the advanced design settings for each image module. Add bottom margin to the first and third images. Add top margin to the middle image. I used 70px in each instance and got the above result. You can use whatever value works best for you.
2. Closed Grid
To achieve the closed grid I’ve created above you will need two rows of image modules, each with three columns. Navigate to each row’s general settings and flip the switch next to “Use Custom Gutter Width”. Then, drag the gutter width down to the lowest setting or simply add the value of zero to the input field. Once applied to both rows this will close the gutters between your images and result in a closed grid.
3. Overlapping Images
To achieve overlapping images all you need is a single row with two columns and an image module in each. Navigate to the left image module’s advanced design settings and add a negative right margin; I used -175px. Then, go to the advanced design settings for the right image module and add a top margin to push the image down, creating a more appealing overlap; I used 125px. Save these settings, save the draft or update the post and you will see that you now have overlapping images that look like an editorial collage.
4. Overlapping Text
Overlapping text is very similar to overlapping images but the way in which I’ve done it here requires a few more considerations. First, you’ll need more than one row. I used two rows, one full-width and one with two columns as seen below.
The overlap itself occurs when you go into the module settings for the text module in the bottom row. In the advanced design settings tab, scroll to the bottom where the margin and padding controls are. Enter a negative value into the top margin field. I used -40px but you will likely have to use a different value depending on the fonts and font sizes you are using.
Text alignment can also be tricky when overlapping text. I found this particular balance by experimenting with adding various values to the left margin field under the advanced design settings and the text orientation under general settings.
5. Image Overlapping A Section
To achieve this effect, of an image overlapping another section, the first and most important requirement is creating an image that has a transparent background. I used an image from a past freebie we offered here on the Carpetcleaninghaddontownship blog. If you’re not sure how to create a similar element you can download that freebie and see how we created those image elements.
Once you have an image designed for this kind of layout, create a full-width image module at the bottom of a section, above the section you’d like to overlap.
Finally, in your image module’s advance design settings tab, enter a negative value in to the bottom margin field. I’ve used -235px for this example. Your value will likely be different depending on your exact use case.
Diving deeper into Divi’s Advanced Design Settings is a step in the right direction for making your site stand out. In particular, the custom Divi margin, padding and gutter controls can be used in some very creative ways.
From our list you hopefully have some new ideas for how to make use of these settings. If you’ve not ventured off the default path yet, we encourage you to try out some of the techniques shown here. And of course we hope you keep coming back for more tutorials just like this one.
Be sure to subscribe to our email newsletter and so that you never miss a big announcement, useful tip, or Divi freebie!
Article thumbnail image by Max Griboedov / shutterstock.com.
Divi 100 Day 22
The Countdown To Divi 3.0
This post is part of our Divi 100 marathon. Follow along as we post free Divi resources for 100 days in a row! This 100-day countdown will end with the game-changing release of Divi 3.0, including our brand new visual editor built from the ground up using React. Divi 3.0 will change the way you build websites with the Divi Builder forever!
Let the countdown begin.