How to Create Styled Content Boxes in Divi for Tips, Info, Warnings, and More (FREE Download) | Elegant Themes Blog

Styled content boxes for things like tips, warnings, and other important info are handy assets for any website or blog. They are an effective and convenient way to showcase important content with consistent design users will appreciate. For example, you may be a need a content box design for highlighting a key tip in a tutorial or for warning users about a potential problem.

In this tutorial, we are going to show you how to build 3 content box designs in Divi. These content box designs can easily be tweaked with new icons, color schemes, and/or content to fit any need. Once we show you how to design the boxes, we’ll show you how you can use Divi’s global presets to make it easier to deploy a new pre-designed content box with just a few clicks. No plugin is needed!

Let’s get started!

Sneak Peek

Today, we are going to build these 3 main content box designs in Divi.

With these 3 main content box designs, you will be able to make easy customizations (like icon, color, and text) to make endless content-box designs for any occasion.

Here are 36 examples we are including in our FREE download below.

Download the Layout for FREE

To lay your hands on all 36 content box designs, you will first need to download the layout 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.

Join the Divi Newsletter 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!

To import the section layout to your Divi Library, navigate to the Divi Library.

Click the Import button.

In the portability popup, select the import tab and choose the download file from your computer.

Then click the import button.

Once done, the section layout will be available in the Divi Builder.

Let’s get to the tutorial, shall we?

What You Need to Get Started

To get started, you will need to do the following:

After that, you will have a blank canvas to start designing in Divi.

Creating the Content Box Designs in Divi

Before we start designing our content boxes, let’s add a new one-column row to the default section in the Divi Builder.

Content Box Design #1

To create the first content box, add a blurb module to the column.

Under the content tab, update the following:

Under the design tab, update the icon style as follows:

Next, update the text styles as follows:

Once the text styles are in place, update the size and padding as follows:

Then add a subtle box-shadow to the blurb as follows:

Under the advanced tab, we are going to give the blurb icon a custom style so that it has a circle shape with background and border colors that match the left background gradient color used earlier. We are also going to position the icon with an absolute position so that we can place it exactly where we want without taking up any actual space in the document.

To add the custom style, paste the following CSS code in the Blurb Image CSS box:

NOTE: When changing the color scheme of the content box (or blurb module), we will also need to update the colors that are being used in the Blurb Image CSS for the border and background of the icon.

Let’s check out the final result.

Content Box Design #2

To create our second content box design, duplicate the previous blurb module to jumpstart the design so that we can make a few modifications.

For this design, we are going to vertically center the icon on the left side of the blurb using the CSS grid property.

Under the design tab, replace the Blurb Image CSS with the following:

Then add the following CSS to the Blurb Content CSS box:

The width of the left column in the grid (the one holding the icon) is set to 5em, and the right column containing the title and body text is set to auto. We need to match the width of the left gradient color to the 5em width grid column holding the icon. To do that, update the following:

Under the design tab, update the icon alignment and size:

Now we don’t need the left padding so take it out.

Now everything should be lined up nicely. Check out the final result.

Content Box Design #3

To create the third content box design, duplicate the second blurb module (content box) we just finished.

Once the second blurb is duplicated, open the duplicate blurb settings.

Under the Design tab, change the icon color:

Next, we are going to add vertical label text over the icon by adding custom CSS to the before pseudo-element (which basically allows you to attach additional design and/or content before the blurb module element).

To add the label, paste the following CSS to the Before CSS box:

We will also rotate the icon to match the rotated vertical text. To do this, add the following CSS to the Blurb Image CSS box:

Here is the final result.

Updating the Design

Update the Size of Content Box Elements by Changing the Body Text Size

Each of the content boxes is built using mostly the em length unit (em is relative to the element’s root body font size). Because of this, the content boxes will scale in size seamlessly when adjusting the body text size in Divi’s built-in design settings.

Update Custom CSS Colors

For content box design #1, we added a custom background and border color to the icon with custom CSS. Make sure to update the colors used for the border and background property to match the color scheme of your own design.

Updating the Label Text

For content box design #3, we added a label with custom CSS on the before pseudo element. To update the text, simply change the value of the content property in the Before CSS box.

Making the Content Boxes Reusable in Divi

Save the Module to the Divi Library

There two main ways to make modules reusable in Divi. The first way is to save the module (or any element) to the Divi Library.

Once the element is saved to the library, you can find it in the Divi library when adding a new element to a page.

Use Global Presets

The second main way to make a module reusable in Divi is to create a global preset for that module. Once you save the design of a module as a global preset, you can easily add that global preset to any other instance of that same module.

In this case, we can open the settings for each of our content boxes (or blurb modules) and create a new global preset for each one. To do that, open the Blurb Module settings and click on the preset option at the top. Then turn the module settings into a new preset from custom styles.

Name the new preset whatever you want and save it.

Repeat these steps for each blurb module preset you want to create.

To create more content boxes in the future, simply add a new blurb module and select the icon you want to use. Then activate any of the uploaded presets by clicking on the preset dropdown at the top, and selecting a preset of your choice.

Final Results

Here is a final look at the 3  main content box designs we built.

And here are 36 designs you will be able to make with a few easy customizations we are including in our FREE download above.

Final Thoughts

The styled content boxes we created can be a useful design asset for any website or blog. You can take advantage of the powerful design options in Divi to tweak the content boxes to fit any design. Plus, with the ability to save and upload them to the Divi library and/or create global presets, you will be able to deploy these content boxes whenever you want with just a few clicks. Hopefully, these will come in handy.

I look forward to hearing from you in the comments.


This content was originally published here.

Sign Up for Updates and Special Offers

Jeff Kerby

CEO | KERBCO Web Services