How to Use Divi’s New Border Style Options on Your Website (Part 1)

Divi’s new border style options are part of one of the most recent updates. Within the announcement blog post, we’ve shared some amazing designs you can achieve with these new options without having to use any additional CSS. The chances are that you’ve liked some of those designs and that you want to learn how to make these borders for your next website. That’s why we’re going to show you exactly how you can recreate all of the border options.

Instead of showing you all the specific design options of each one of the modules that are being used in these examples, we’re rather going to focus on what border settings are necessary to make these designs work. After that, you’ll be able to add the modules and modify it to your needs.

The Examples We’ll be Recreating in This Post

Example #1

border style

Example #2

border style

Example #3

border style

Example #4

border style

Example #5

border style

Example #6

border style

Example #7

border style

How to Use Divi’s New Border Style Options on Your Website (Part 1)

Subscribe To Our Youtube Channel

Recreate Borders of Example #1

border style

The Border Concept

The border settings that you can notice within the print screen above are part of a row, although, at first sight, it might seem like they have been added to the different modules. To achieve this kind of result, the gutter width and row spacing are indispensable.

Row Settings

Row Column Structure

The first thing you’ll have to do is add a new row to an existing section. Choose the following column structure for this row:

border style

Row Background Color

Then, open the row settings and use ‘#ffffff’ as the background color.

border style

Column 2 Background Colors

Scroll down the same tab and use ‘#09e1c0’ as the background color for the second column.

border style

Row Sizing

Then, move on to the Design tab and use the following settings for the Sizing subcategory:

  • Use Custom Gutter Width: Yes
  • Gutter Width: 1
  • Equalize Column Heights: Yes

border style

Row Spacing

Next, open the Spacing subcategory and use the following settings:

  • Top, Right, Bottom & Left Padding: 0px
  • Column 1 & 2 Top & Bottom Padding: 60px
  • Column 1 & 2 Right & Left Padding: 40px

border style

Row Border

Continue by adding ’16px’ to all of your corners within the Border subcategory.

border style

Row Box Shadow

Lastly, add the following settings to the Box Shadow subcategory:

  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 10px
  • Box Shadow Blur Strength: 60px
  • Box Shadow Spread Strength: 0px
  • Shadow Color: rgba(71,74,182,0.12)
  • Box Shadow Position: Outer Shadow

border style

Add Modules to Columns

Now, depending on the modules you want to use within the columns, you add them and change the design settings according to your needs.

Recreate Borders of Example #2

border style

The Border Concept

For the second example, we’re making use of two Image Modules to create the phone and tablet effect. We’re using a border and a box shadow at the same time. Using the new border settings will make it easy to create the ‘mockup’ effect without having to make use of mockup files.

Mobile Image Module

Prefered Image Dimensions

The image dimensions that are preferred for your print screen are in this case ‘374px’ for the width and ‘668px’ for the height.

Sizing

Once you add the Image Module and the image, go to the Design tab and add ‘251px’ to the Width within the Sizing subcategory.

border style

Border

Then, open the Border subcategory and add ’30px’ to all of the corners.

border style

Moving on, use the following settings for the top and bottom border style:

  • Border Width: 50px
  • Border Color: #333333

border style

And the following settings for the right and left border style:

  • Border Width: 10px
  • Border Color: #333333
    border style

Box Shadow

Lastly, use the following box shadow for the Image Module:

  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 0px
  • Box Shadow Blur Strength: 0px
  • Box Shadow Spread Strength: 4px
  • Shadow Color: rgba(0,0,0,0.56)
  • Box Shadow Position: Outer Shadow

border style

Tablet Image Module

Prefered Image Dimensions

The tablet print screen will, preferably,  need a width of ‘1024px’ and a height of ‘768px’.

Border

Just like the mobile screen, the tablet version will need ’30px’ for all of the corners within the Border subcategory.

border style

Then, use the following settings for the top and bottom border:

  • Border Width: 15px
  • Border Color: #333333

border style

And the following settings for the right and left border:

  • Border Width: 50px
  • Border Color: #333333

border style

Box Shadow

Lastly, use the same box shadow as you did for the mobile version:

  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 0px
  • Box Shadow Blur Strength: 0px
  • Box Shadow Spread Strength: 4px
  • Shadow Color: rgba(0,0,0,0.56)
  • Box Shadow Position: Outer Shadow

border style

Recreate Borders of Example #3

border style

The Border Concept

Although this result looks like it’s one whole and one row, it is, in fact, a combination of 5 different rows. Using this kind of structure helps you make use of the various column structures. At the same time, it also allows you to create the bigger picture.

Row 1

Column Structure

For the first column you add to an existing section, you will need four columns. Of course, you can also choose another column structure depending on your needs; it won’t affect the bigger picture.

border style

Background Color

Then, add ‘#f7691d’ as the row background color.

border style

Spacing

Moving on, add ‘0px’ to the top and bottom margin of the row.

border style

Border

Lastly, add the following border to the row. Since this is the first row of the entire result, we’ll only need a top, right and left border style with the following settings:

  • Border Width: 16px
  • Border Color: #f9cc98

border style

Naturally, you have to make sure that the Bottom Border Width is ‘0px’.

border style

Row 2, 3 & 4

Column Structures

The second, third and fourth row have the same settings. The only thing that differs is the column structure. That’s why we’re going to go through the process only once. Depending on the content you’re trying to share, you can add as many of the same rows to this part of the tutorial.

Background Color

All three of the rows have ‘#f7691d’ as their background color.

border style

Spacing

It’s important to add ‘0px’ to the top and bottom margin of the row. This helps to remove the space between the rows.

border

Border

Lastly, make sure the top and bottom border styles have a Border Width of ‘0px’.

border style

And that the right and left border styles are the following:

  • Border Width: 16px
  • Border Color: #f9cc98

border style

Row 5

Column Structure

The last row of this example has the following Column Structure:

border style

Background Color

Again, ‘#f7691d’ is being used as the background color.

border style

Spacing

Add ‘0px’ to the top and bottom margin of the last row as well.

border style

Border

And lastly, the left, bottom and right border styles will need the following settings:

  • Border Width: 16px
  • Border Color: #f9cc98

border style

Only the top border style will need ‘0px’ as its Border Width.

border style

Add Modules to Columns

Depending on the content you want to add to this entire design, you can decide on the different column structures for each row to match the content you’re bringing. After that, add the modules to the various columns.

Recreate Borders of Example #4

border style

The Border Concept

This example focuses on the top border which you can assign to each one of the accordion items within your Accordion Module. You’ll have to assign the top border to each one of the accordion items individually, which also allows you to play around with the colors that are being used for it.

Row Settings

Column Structure

First of all, add a row with one column to your existing section.

border style

Add Accordion Module

Then, add an Accordion Module to it. Add as many items to this accordion as you need on your website.

Add Top Border & Spacing to Each Accordion Item Individually

Once you’ve added all of your accordion items, you’ll have to add the following settings to the Spacing subcategory of each Accordion Item:

  • Bottom Margin: 0px
  • Top Padding: 30px
  • Bottom Padding: 30px
  • Left Padding: 0px

border style

Next, you will need to add a top border style to each one of the items as well:

  • Border Width: 6px
  • Border Color: #000000

border style

Recreate Borders of Example #5

border style

The Border Concept

The new border options allow you to experiment not only with rows or modules but with sections as well. The example above is proof of that. To match the section borders, we’ve also added subtle borders to the Blurb Modules.

Section Settings

Add Background

Once you’ve added a new standard section, add a background of your need to it. This could be one color, a gradient background color or a combination of a textured background with a color or gradient color overlay.

Spacing

Then, move on to the Design tab of the section and add the following settings to the Spacing subcategory:

  • Top, Bottom & Left Margin: 5%
  • Top Padding: 60px (Desktop & Tablet), 12% (Phone)
  • Right Padding: 5% (Desktop), 0px (Tablet & Phone)
  • Bottom Padding: 60px (Desktop & Tablet), 12% (Phone)
  • Left Padding: 6% (Phone)

border style

Border

Lastly, add the following corners to the Border subcategory:

  • Top Left: 240px
  • Bottom Left: 240px
  • Top Right: 0px
  • Bottom Right: 0px

border style

Blurb Settings

Background Color

When adding the Blurb Module, the first thing you’ll need to do is add ‘#ffffff’ as the background color.

border style

Sizing

Then, move on to the Design tab and add ‘550px’ to the Content Width.

border style

Spacing

Next, add the following Custom Padding to the Spacing subcategory:

  • Top & Bottom: 40px
  • Right & Left: 20px

border style

Border

The border of the Blurb Module needs ‘6px’ for every corner.

border style

Box Shadow

And lastly, make use of the following Box Shadow:

  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 24px
  • Box Shadow Blur Strength: 28px
  • Box Shadow Spread Strength: -16px
  • Shadow Color: rgba(0,0,0,0.24)
  • Box Shadow Position: Outer Shadow

border style

Other Side Section Border

If you want the section border to apply on the other side of your section, you can simply change the rounded corners. Instead of having ‘240px’ for the top left and bottom left corner, you’ll have ‘0px’. Same counts for the top right and bottom right corner; instead of ‘0px’, they will need ‘240px’.

border style

Other Side Section Spacing

The spacing for the section with a border on the other side is slightly different as well:

  • Top, Bottom & Right Margin: 5%
  • Top Padding: 60px (Desktop & Tablet), 12% (Phone)
  • Right Padding: 0px (Desktop & Tablet), 6% (Phone)
  • Bottom Padding: 60px (Desktop & Tablet), 12% (Phone)
  • Left Padding: 5% (Desktop), 0px (Tablet & Phone)

border style

Clone Blurb Module & Place in All Columns

Once you’re done creating section and Blurb Module, you can clone it as many times as you want, depending on the column structure you have for the row within the section.

Recreate Borders of Example #6

border style

The Border Concept

The following example makes use of a specialty section instead of a regular section. This makes it able to add a specific border to the row that contains the Blurb Modules, instead of adding the border to the entire result. The Text Modules on the left side are placed in a column that isn’t part of the row with the Blurb Modules.

Specialty Section Structure

The structure we have chosen for this particular example is the following:

border style

Row Settings

Column Structure

The row, which includes the Blurb Modules, has two columns.

border style

Sizing

Once you’ve added the row, go to the Design tab and enable the Custom Gutter Width option. Then, add ‘1’ to the Gutter Width.

border style

Spacing

Moving on, make sure that the Custom Padding is ‘0px’ for all of the options.

border style

Border

Then, add ’10px’ to all of the corners within the Border subcategory.

border style

Box Shadow

Lastly, use the following Box Shadow as well:

  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 10px
  • Box Shadow Blur Strength: 60px
  • Box Shadow Spread Strength: 0px
  • Shadow Color: rgba(71,74,182,0.12)
  • Box Shadow Position: Outer Shadow

border style

Blurb Module

Background Color

Once the row settings are completed, you can start adding a Blurb Module to one of the columns. The blurb module needs ‘#ffffff’ as its background color.

border style

Sizing

Then, make the following settings apply to the Sizing subcategory within the Design tab:

  • Image Width: 64px
  • Content Width: 1100px

border style

Spacing

Scroll down, open the Spacing subcategory and add ’30px’ to all of the Custom Padding options.

border style

Left Border

Last but not least, add a left border of ‘8px’ with the ‘#09e1c0’ color code.

border style

Clone Blurb Module & Place in All Columns

Once you’ve completed the Blurb Module, you can clone it as many times as you want and place it within both the columns. The only thing left to do is change the content and left border color to make each Blurb Module unique.

Recreate Borders of Example #7

border style

The Border Concept

For the last example in this post, we have a combination of borders for the section, row and Text Module within the row. This perfectly illustrates which kinds of results you can get when you combine all of the border options within a certain section.

Section Settings

Spacing

Start by adding a new standard section and add the following Custom Padding to it:

  • Top & Bottom: 240px
  • Right & Left: 0px

border style

Border

Then, open the Border subcategory and make use of the following settings:

  • Border Width: 26px
  • Border Color:#747d88
  • Border Style: Solid

border style

Box Shadow

Lastly, add a box shadow to the section as well:

  • Box Shadow Horizontal Position: 0px
  • Box Shadow Vertical Position: 0px
  • Box Shadow Blur Strength: 80px
  • Box Shadow Spread Strength: 0px
  • Shadow Color: rgba(0,0,0,0.54)
  • Box Shadow Position: Outer Shadow

border style

Row Settings

Column Structure

Once your section settings are done, you can add a row with one column to it.

border style

Border

Then, open the settings of this row and add the following border style to the left and right side:

  • Border Width: 16px
  • Border Color: #f9cc98
  • Border Style: Double

border style

Text Module

Sizing

Now, add a Text Module to the one-column row and use the following settings for the Sizing subcategory:

  • Width: 90%
  • Module Alignment: Center

border style

Spacing

Then, open the Spacing subcategory and add ’40px’ to all of the Custom Padding options.

border border style

Border

Lastly, add a slightly transparent border to all of the sides with the following settings:

  • Border Width: 16px
  • Border Color: rgba(145,145,145,0.27)
  • Border Style: Solid

border style

Final Thoughts

The new Divi border options open a whole new experience for you while designing your websites. The examples we’ve shown you how to recreate and understand, are the same as the ones that we’re shared with you in the border announcement blog posts. In the second part of this post, we’ll be showing you how to create the remaining examples. If you have any questions or suggestions; make sure you leave a comment in the comment section below!

Featured Image by estherpoon / shutterstock.com

.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 Use Divi’s New Border Style Options on Your Website (Part 1) appeared first on Elegant Themes Blog.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: