How to Overlap Modules and Rows to Create Unique Layouts in Divi


Overlapping is a useful technique that is often used to create unique web designs and layouts. And it is easy to overlap content with Divi. The basic concept involves adding custom margins and spacing to your modules, rows and sections in a way that positions them to overlap each other. You may have already noticed this overlapping technique on some of our Divi Layouts.

In this tutorial, I’m going to show you the basics of using custom margins and spacing to overlap modules with modules, modules with rows, and rows with rows. After that, I’m going to show you how to create a unique overlapping contact form layout by overlapping two rows.

Let’s get started.

Sneak Peek

Here is a unique contact form layout we will create together using the overlapping techniques.

final layout

Divi’s contact form can be styled in many creative ways using the Divi Builder. One unique way to make your contact form standout is to overlap it with other content. You can overlap content with Divi easily. But today I’m going to show you something you may have never seen done before in Divi.

In this Tutorial, I’m going to show you how to create a unique contact form layout using these overlapping methods

Method 1: Overlapping Modules with Modules

Overlapping a module with another module is extremely simple to do. Here is an example of how to set this up.

Create a regular section with a one-half one-half 2 column structure. And then add a module to each of the columns.

add modules

For the module in the left column, update the following:

Custom Margin (desktop): -20% Right, 20% Left
Custom Margin (Tablet): 0px Right, 0px Left (setting the tablet margins will clean things up on mobile)

left margins

For the module in the right column, update the following:

Custom Margin (desktop): 20% Top, 20% Right, -20% left
Custom Margin (Tablet): 0px Top, 0px Right, 0px left

right module

That’s it.

Depending on the module you are using, you may have to add some custom background colors, padding, box radius, etc. to get it looking right. You can also add a box shadow to create depth when overlapping modules.

Method 2: Overlapping Modules with Rows

You may be asking why you would need to overlap a row with a module. The reason is that you may want to move a group of modules as a single piece of content. This is a common occurrence when building sites with Divi. For example, the contact information in the screenshot below is made up of a text module, 3 blurb modules, and a social media follow module stacked on top of each other to create one single block of content.

stacked modules

You could create custom margins and spacing for each of the modules to overlap another module, but you would have limitations. Adding a border radius to your group of modules would be more difficult. It wouldn’t be possible to add box shadow to the group of modules as a whole, since you would be forced to set a box shadow for each module. Therefore the easiest way to move a group of modules is to keep them in a row and move the row. That way you can easily add your border styles and box shadows to the row and add as many modules inside your row as you like.

The best I have found to overlap a module with a row is to use a specialty section. A specialty section is perfectly set up for this because all of the specialty section layouts have a designated sidebar area/column (for modules) on one side and a designated area/column on the other for rows. Once you have your module added to the sidebar and your row content in place, you can use custom margins and spacing to shift either the row or the module to overlap the other.

Here is an example of how to set this up.

Create a specialty section with a one-half one-half column structure and with the rows on the right side.

create section

Then insert a one column row in the right column.

add row

Add a module (or modules) to the row.

Then add a module to the left column of your specialty section.

add module

Update the settings of the module in the left column as follows:

Custom Margin (desktop): -20% Right, 20% left
Custom Margin (Tablet): 0px Right, 0px Left

module settings

Update the settings of the row in the right column as follows:

Custom Margin (desktop): 20% Top, 20% Right, -20% left
Custom Margin (Tablet): 0px Top, 0px Right, 0px left

right row settings

That’s it.

Now all you have to do is customize the row settings to add a background color, border radius, padding, box shadow, etc. And you can add more than one module inside your customized row.

Method 3: Overlapping Rows with Rows

To overlap a row with another row is a bit more involved. We need to figure out a way to get two rows side by side. I’ve tried a number of ways to do this in Divi and the best way I have found to do this is by creating two specialty sections. Since each specialty section has one column of the section designated to rows, you can create a section with a row on the left column and then another section below with a row on the right column. After that, all you need to do is move the row in the bottom section to overlap the row in the top section.

Technically you can do this with two regular sections as well, but it is more difficult to get the placement of the rows to render correctly on different browser sizes (at least in my experience). The two column setup of the specialty section helps to do this without having to bother with Custom CSS.

Here is how to do it.

Create a specialty section with a one-half one-half column structure and with the rows on the left side:

create section

Then insert a one column row in the left column.

add row

Add a module (or modules) to the row.

add module

Then create another Specialty section below the current one and give it a one-half one-half column structure and with the rows on the right side. Insert a one-column row in the right column.

add row

Then add a module (or modules) to the row.

add module

Next we need to add custom margins to each of our rows in order to make them overlap. First, add the following custom margins to the row in the left column of the first section:

Custom Margin (Desktop): 15% left
Custom Margin (Tablet): 0px left

Save settings and add the following custom margins to the row in the right column of the second section:

Custom Margin (Desktop): -300px Top, -15% Left (you may need to adjust these values depending on the size of your rows/modules. You may also need to add a negative value to your bottom margin if too much extra space is below the row)
Custom Margin (Tablet): 0px Top, 0px Bottom, 0px left

add margins

Creating a Unique Divi Contact Form Layout with Overlapping Rows

Now that you understand the power of overlapping, let’s put these techniques to use by building a unique contact form layout. For this layout I’m going to overlap two rows using two specialty sections. That way you can easily add additional modules to this layout with ease.

For the sake of time, I’m going to use the layout we created under “Overlapping Rows with Rows”.

Once your layout is in place, go to your section settings of the top specialty section and update the following:

Under the content tab
Background Color: #fd7978

Under the design tab
Use Custom Width: YES
Custom Width: 1350px
Use Custom Gutter Width: YES
Gutter Width: 1

This will give us some breathing for our content and rows.

Now copy the style of the top section and paste it to the section below as well.

paste section

For the row in the left column of the top section, update the row settings as follows:

Under the content Tab

Background Color: #ffffff
Under the design tab

Custom Margin (Desktop): 20% left
Custom Margin (Tablet): 0px left
Custom Padding (Desktop): 10% Top, 20% Right, 10% Top, 10% left
Custom Padding (Tablet): 10% Top, 10% Right, 10% Top, 10% left

Border Rounded Corners: 10px

row settings

Next add a contact form to the row and update the following settings:

First Add a new field to your form with the following:
Field ID: service
Title: Service Interested In
Type: Radio Buttons
Option 1: Design
Option 2: Development
Option 3: customization

contact form

Under the design tab of your new field…
Make Fullwidth: NO

Save field options and go back to the content tab of the contact form settings and update the following:

Under the content tab…

Title: Send Us A Message
Display Captcha: NO

Under the Design tab…

Title Heading Level h2
Title Font: Karla
Title Font Weight: bold
Title Font Style: Capitalize (TT)
Form Field Background Color: #ffffff
Form Field Font: Karla
Form Field Text Size: 16px

Use Custom Styles for Button: YES
Button Text Color: #ffffff
Button Background Color: #ff7875
Button Border Color: #ff7875
Button Border Radius: 5px
Button Font: Karla
Font Weight: bold
Font Style: TT

Inputs Rounded Corners: 5px
Inputs Border Width: 1px
Inputs Border Color: #cccccc

form design

Under the Advanced Tab…

Add the following Custom CSS to the Contact Button Box:

margin-top: 45%

This will square off your form by dropping the button down a bit.

margin

Save Settings

Now you are ready to add Modules to and edit the row in the right column of the second section. First let’s update the row settings as follows:

Background Color: #444444

Under the Design tab…
Width (desktop): 70%
Width (tablet): 100%
Custom Margin (desktop): -620px Top, -620px Bottom, 10% left
Custom Margin (tablet): 0px Top, 0px Bottom, 0px left
Custom Padding: 15% Top, 10% Right, 15% Bottom, 10% left
Rounded Corners: 10px
Box Shadow: [first selection]

row 2

Save row Settings

Next add a text module to the row and update the following:

Content:

<h2>Contact Me</h2>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ex sem, facilisis sed viverra nec, sagittis vel quam nulla nisi mi scelerisque quis.

Text Color: light
Text Font: Karla
Text Text Size: 16px
Text Line Height: 1.5em

Heading Text H2 tab
Heading 2 Font: Karla
Heading 2 Font Weight: Bold
Heading 2 Text Size: 32px
Heading 2 Letter Spacing: 3px
Heading 2 Line Height: 1.1em
Custom Margin: 20px bottom

Add Blurb Modules to display your Contact Info

Add a blurb module under the text module. Update the blurb settings by giving it the Title “Address” and then add the address to the content box. Then select to use the navigation icon.

Update the design tab settings as follows:

Icon Color: #ff7875
Image/Icon Placement: Left

Text Color: Light
Use Icon Font Size: YES
Icon Font Size: 20px
Title Heading Level: H$
Title Font: Karla
Title Font Weight: Bold
Title Text Size: 20px
Body Font: Karla
Body Text Size: 16px
Body Line Height: 1.5em
Custom Margin: 20px Bottom

Now duplicate this blurb module twice and update the content (title, content, and icon) of each module to include information for a Phone number in one blurb and an email address in the other.

duplicate blurbs

Next add a Social Media Follow module under the last blurb in the row. Add as many social networks as you like making sure that you delete the background color for each one so that only the white icon shows.

That’s it. Let’s check out the result.

final layout image

Do More!

The layout we just created can be used for any content you want. Because these are overlapping rows, you can use the Divi Builder to add any modules to each of the rows and update the settings for each module. You may need to tweak the spacing some but that shouldn’t be too difficult. Pretty powerful stuff.

How to Change Overlapping Order

By default, the first element on the page will always sit behind the element that follows it if the two were to overlap. That is why the content on the right will always overlap the content on the left.

You can change this easily with one line of custom CSS. Go to the section (or row) that holds your first column (the one on the left) and, under the advanced tab, enter the following CSS into the box labeled “Column 1 Main Element”:

z-index: 10

The reason this works is because all columns have z-index: 9 as the default. Increasing the number to 10 will stack the element on top of the other. This will only work at the column level.

If you are overlapping two modules within a two column row, you will need to add this custom CSS to column 1 Main Element under the Advanced tab in the Row settings.

index modules

If you are using a specialty section to overlap a module and a row, you will need to add this custom CSS to column 1 Main Element under the Advanced tab in the section settings.

index section

If you are using two specialty sections to overlap two rows, you will only add it to the top section.
For the contact form example we created, notice how the contact form row overlaps the right row when I add “z-index: 10” to the top section settings advanced tab under column 1 Main Element:

index rows

Making Overlapping Layouts Responsive

You need to make sure that you use overlapping methods that render well on all devices and browser sizes. To do this, use a combination of percentage values and pixel values when setting your custom margins. In general, I would use percentage values for left and right margins (so that they adjust nicely to the width of the browser) and a specific pixel value for top and bottom margins.

You should also make sure to set the custom margins for each specific device so that margins will render nicely on tablet and smartphones. A good rule of thumb is to change any custom margins you have set for desktop to 0px for Tablet (Smartphone devices will inherit the settings for Tablet automatically).

responsive margins

Download These Overlapping Examples

If you would like to download these overlapping examples to help kick off future designs, click the button below. To gain access to the download you will need to subscribe to our Divi Daily email list by using the form below. As a new subscriber you will receive even more Divi goodness and a free Divi Layout pack every Monday! If you’re already on the list, simply enter your email address below and click download. You will not be “resubscribed” or receive extra emails.

The download file is called “Overlapping-Content-Examples.zip”. Once you download and unzip the file, you will have two json files. The first contains the three overlapping templates from this post. The second contains the Overlapping Contact Form layout from this post.

.et_bloom .et_bloom_optin_1 .et_bloom_form_content { background-color: #4843d2 !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container .et_bloom_form_header { background-color: #ffffff !important; } .et_bloom .et_bloom_optin_1 .carrot_edge .et_bloom_form_content:before { border-top-color: #ffffff !important; } .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:before, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:before { border-top-color: transparent !important; border-left-color: #ffffff !important; }
@media only screen and ( max-width: 767px ) {.et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_right .et_bloom_form_content:before, .et_bloom .et_bloom_optin_1 .carrot_edge.et_bloom_form_left .et_bloom_form_content:before { border-top-color: #ffffff !important; border-left-color: transparent !important; }
}.et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_border_solid { border-color: #f7f9fb !important } .et_bloom .et_bloom_optin_1 .et_bloom_form_content button { background-color: #f92c8b !important; } .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container h2 strong { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; }.et_bloom .et_bloom_optin_1 .et_bloom_form_container p, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p span, .et_bloom .et_bloom_optin_1 .et_bloom_form_container p strong, .et_bloom .et_bloom_optin_1 .et_bloom_form_container form input, .et_bloom .et_bloom_optin_1 .et_bloom_form_container form button span { font-family: “Open Sans”, Helvetica, Arial, Lucida, sans-serif; } p.et_bloom_popup_input { padding-bottom: 0 !important;}

Download For Free

Download For Free

Join the Divi Newlsetter and we will email you a copy of the ultimate Divi Landing Page Layout Pack, plus tons of other amazing and free Divi resources, tips and tricks. Follow along and you will be a Divi master in no time. If you are already subscribed simply type in your email address below and click download to access the layout pack.


You have successfully subscribed. Please check your email address to confirm your subscription and get access to free weekly Divi layout packs!

Final Thoughts

You can build creative and unique layouts using these overlapping methods with the Divi Builder. These spacing combinations can be a real eye opener if you are just starting out with Divi. And of course, you aren’t limited to “overlapping”. You can use these techniques to place elements any way you like on a web page.

So, go for it!

I look forward to hearing from you in the comments.

.divi_cta{background-color: #8f43ee; color: #fff; font-size: 20px; font-weight: bold; padding: 20px; text-align: center; display: block; text-decoration: none; border-radius: 4px;}.divi_cta:hover{text-decoration:none;background-color:#7d37d6;}.divi_cta_red{background-color:#db1c1c;}.divi_cta_red:hover{background-color:#c51a1a;}

The post How to Overlap Modules and Rows to Create Unique Layouts in Divi appeared first on Elegant Themes Blog.

Like it.? Share it: