When showing multiple calls to action on your page, it can help to create an interactive scroll effect that unites different elements. One way to approach this is by turning modules into fixed elements while they’re moving around in their column container. In today’s tutorial, we’ll show you how to create a beautiful design that handles this technique and you’ll be able to download the JSON file for free as well!

Let’s get to it.


Preview

Before we dive into the tutorial, let’s take a final look at the outcome across different screen sizes.

Desktop

how-to-keep-modules-fixed-in-their-column-container-with-divi How to Keep Modules Fixed in Their Column Container with Divi

Tablet & Mobile

how-to-keep-modules-fixed-in-their-column-container-with-divi How to Keep Modules Fixed in Their Column Container with Divi

Download The Sticky Column Container Design for FREE

To lay your hands on the free sticky column container design, you will first need to download it using 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.

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

Let’s Start Recreating!

Add New Section

Start by adding a new regular section to the page you’re working on.

how-to-keep-modules-fixed-in-their-column-container-with-divi-1 How to Keep Modules Fixed in Their Column Container with Divi

Spacing

Open the section settings and modify the top and bottom padding across different screen sizes.

  • Top Padding: 7vw (Desktop), 10vw (Tablet), 15vw (Phone)
  • Bottom Padding: 20vw (Desktop), 7vw (Tablet), 10vw (Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-2 How to Keep Modules Fixed in Their Column Container with Divi

Add New Row

Column Structure

Continue by adding a new row using the following column structure:

how-to-keep-modules-fixed-in-their-column-container-with-divi-3 How to Keep Modules Fixed in Their Column Container with Divi

Sizing

Without adding any modules yet, open the row settings and allow the row to take up the entire width of the section. It’s also really important to enable the ‘Equalize Column Heights’ option. By doing that, you’ll create some empty space in the columns that’ll allow the fixed modules to move freely while scrolling down the page.

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes
  • Width: 100%
  • Max Width: 100%

how-to-keep-modules-fixed-in-their-column-container-with-divi-4 How to Keep Modules Fixed in Their Column Container with Divi

Column 2 Top Padding

Open the column 2 settings next and add some top padding on desktop.

  • Top Padding: 20vw (Desktop), 0vw (Tablet & Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-5 How to Keep Modules Fixed in Their Column Container with Divi

Column 3 Top Padding

Add a custom top padding value to the third column as well.

  • Top Padding: 40vw (Desktop), 0vw (Tablet & Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-6 How to Keep Modules Fixed in Their Column Container with Divi

Column 4 Top Padding

And complete the row’s settings by adding a top padding value to column 4 too.

  • Top Padding: 60vw (Desktop), 0vw (Tablet & Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-7 How to Keep Modules Fixed in Their Column Container with Divi

Add CTA to Column 1

Add Content

Time to start adding modules! The first module we need in column 1 is a CTA Module. Insert some content of your choice.

how-to-keep-modules-fixed-in-their-column-container-with-divi-8 How to Keep Modules Fixed in Their Column Container with Divi

Link

Add a link to the button as well. Doing this will allow the button to show up in the design.

  • Button Link URL: #

how-to-keep-modules-fixed-in-their-column-container-with-divi-9 How to Keep Modules Fixed in Their Column Container with Divi

Background Color

Change the module’s background color next.

  • Background Color: #ffffff

how-to-keep-modules-fixed-in-their-column-container-with-divi-10 How to Keep Modules Fixed in Their Column Container with Divi

Text Settings

Move on to the design tab and change the general text settings.

  • Text Alignment: Center
  • Text Color: Dark

how-to-keep-modules-fixed-in-their-column-container-with-divi-11 How to Keep Modules Fixed in Their Column Container with Divi

Title Text Settings

Change the title text settings too.

  • Title Heading Level: H3
  • Title Font: Spectral
  • Title Text Color: #000000
  • Title Text Size: 2vw (Desktop), 4vw (Tablet), 6vw (Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-12 How to Keep Modules Fixed in Their Column Container with Divi

Body Text Settings

Along with the body text settings.

  • Body Font: Fira Sans
  • Body Font Weight: Light
  • Body Text Color: #000000
  • Body Text Size: 1vw (Desktop), 2vw (Tablet), 3vw (Phone)
  • Body Line Height: 1.8em

how-to-keep-modules-fixed-in-their-column-container-with-divi-13 How to Keep Modules Fixed in Their Column Container with Divi

Button Settings

Don’t forget to style the button of your CTA Module as well.

  • Use Custom Styles For Button: Yes
  • Button Text Size: 1vw (Desktop), 2vw (Tablet), 3vw (Phone)
  • Button Text Color: #ffffff
  • Button Background Color: #444eff
  • Button Border Width: 0px

how-to-keep-modules-fixed-in-their-column-container-with-divi-14 How to Keep Modules Fixed in Their Column Container with Divi

  • Button Border Radius: 50vw
  • Button Font: Fira Sans

how-to-keep-modules-fixed-in-their-column-container-with-divi-15 How to Keep Modules Fixed in Their Column Container with Divi

  • Top Padding: 1vw (Desktop), 2vw (Tablet), 3vw (Phone)
  • Bottom Padding: 1vw (Desktop), 2vw (Tablet), 3vw (Phone)
  • Left Padding: 3vw (Desktop), 7vw (Tablet), 13vw (Phone)
  • Right Padding: 3vw (Desktop), 7vw (Tablet), 13vw (Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-16 How to Keep Modules Fixed in Their Column Container with Divi

Spacing

Then, go to the spacing settings and add some custom top and bottom padding.

  • Top Padding: 8vw
  • Bottom Padding: 8vw

how-to-keep-modules-fixed-in-their-column-container-with-divi-17 How to Keep Modules Fixed in Their Column Container with Divi

Border

Add some rounded corners to the module too.

  • Rounded Corners: 1vw (All Corners)

how-to-keep-modules-fixed-in-their-column-container-with-divi-18 How to Keep Modules Fixed in Their Column Container with Divi

Box Shadow

Complete the module’s design by adding a subtle box shadow.

  • Box Shadow Horizontal Position: 10px
  • Box Shadow Blur Strength: 50px
  • Shadow Color: rgba(0,0,0,0.08)

how-to-keep-modules-fixed-in-their-column-container-with-divi-19 How to Keep Modules Fixed in Their Column Container with Divi

CSS Class

Now, to make the scrolling sticky effect work, we’ll need to add a few lines of CSS code at the end of this tutorial. In preparation for that, we’ll add a CSS class to the CTA Module.

  • CSS Class: sticky-cta

how-to-keep-modules-fixed-in-their-column-container-with-divi-20 How to Keep Modules Fixed in Their Column Container with Divi

Add Image Module to Column 1

Upload Image

On to the next and last module we need in column 1, which is an Image Module. Upload a PNG image of your choice.

how-to-keep-modules-fixed-in-their-column-container-with-divi-21 How to Keep Modules Fixed in Their Column Container with Divi

Alignment

Change the image alignment next.

  • Image Alignment: Center

how-to-keep-modules-fixed-in-their-column-container-with-divi-22 How to Keep Modules Fixed in Their Column Container with Divi

Sizing

Make sure you force fullwidth on the module too.

  • Force Fullwidth: Yes

how-to-keep-modules-fixed-in-their-column-container-with-divi-23 How to Keep Modules Fixed in Their Column Container with Divi

Spacing

Complete the module’s settings by going to the spacing settings and adding some custom spacing values across different screen sizes.

  • Top Margin: -5vw (Tablet & Phone)
  • Bottom Margin: -12vw (Desktop), 5vw (Tablet & Phone)
  • Left Padding: 3vw (Desktop), 10vw (Tablet), 25vw (Phone)
  • Right Padding: 3vw (Desktop), 10vw (Tablet), 25vw (Phone)

how-to-keep-modules-fixed-in-their-column-container-with-divi-24 How to Keep Modules Fixed in Their Column Container with Divi

Clone Both Modules Three Times & Place In Remaining Columns

Once you’ve completed both modules in column 1, you can clone both of them three times and place the duplicates in the row’s remaining columns.

how-to-keep-modules-fixed-in-their-column-container-with-divi-25 How to Keep Modules Fixed in Their Column Container with Divi

Change Images

Make sure you change the image in each duplicate Image Module.

how-to-keep-modules-fixed-in-their-column-container-with-divi-26 How to Keep Modules Fixed in Their Column Container with Divi

Change CTA Content & Button Background Colors

Change the CTA content along with the button background colors too.

  • CTA Module #2: #89ffb4
  • CTA Module #3: #ff89f1
  • CTA Module #4: #ffd389

how-to-keep-modules-fixed-in-their-column-container-with-divi-27 How to Keep Modules Fixed in Their Column Container with Divi

Add CSS Class to Image Modules in Column 1, 2 & 3

Now, to make sure the sticky effect works on the images too, we’ll need to add a CSS class to the Image Modules in column 1, 2 and 3.

  • CSS Class: sticky-image

how-to-keep-modules-fixed-in-their-column-container-with-divi-28 How to Keep Modules Fixed in Their Column Container with Divi

Add Row #2

Column Structure

The only thing left to do is adding the CSS code. To do that, add a new row.

how-to-keep-modules-fixed-in-their-column-container-with-divi-29 How to Keep Modules Fixed in Their Column Container with Divi

Add Code Module with CSS Code

Add a Code Module to the row, insert the CSS code below and you’re done!

<style> @media only screen and (min-width: 980px) { .sticky-cta { position: sticky; position: -webkit-sticky; top: 8vw !important; } .sticky-image { position: sticky; position: -webkit-sticky; top: 28vw !important; } }</style>

how-to-keep-modules-fixed-in-their-column-container-with-divi-30 How to Keep Modules Fixed in Their Column Container with Divi

Preview

Now that we’ve gone through all the steps, let’s take a final look at the outcome across different screen sizes.

Desktop

how-to-keep-modules-fixed-in-their-column-container-with-divi How to Keep Modules Fixed in Their Column Container with Divi

Tablet & Mobile

how-to-keep-modules-fixed-in-their-column-container-with-divi How to Keep Modules Fixed in Their Column Container with Divi

Final Thoughts

In this post, we’ve shown you how to keep modules fixed in their column container. Using the technique can result in some stunning scroll effects that allow you to emphasize the various calls to action on your page. You were able to download the JSON file for free as well! If you have any questions or suggestions, feel free to leave a comment in the comment section below.

If you’re eager to learn more about Divi and get more Divi freebies, make sure you subscribe to our email newsletter and YouTube channel so you’ll always be one of the first people to know and get benefits from this free content.


Source

SEO News and More

SEO News and More

Subscribe ToThe Weekly SEO Trade News Updates

Get the latest SEO, SEM and SMM marketing intel, tips and tricks from one of the best SEO Gurus online. 

Every Tuesday morning we send out an aggregated email listing all new posts on SEO Trade News.

Excellent! Now check your email to confirm your subscription.

Share This