How To Match Divi Box Shadows with CSS

Nelson Miller Profile Orange
In this tutorial, I'm going to show you how to match the Divi box shadows with CSS so you can use the same style anywhere on your website!
how to add Divi box shadows on columns

This is an example of the default Divi box shadow 1.

how to add Divi box shadows on columns
box-shadow: 0px 2px 18px 0px rgba(0,0,0,0.3);

This is an example of the default Divi box shadow 2.

how to add Divi box shadows on columns
box-shadow: 6px 6px 18px 0px rgba(0,0,0,0.3)

This is an example of the default Divi box shadow 3.

how to add Divi box shadows on columns
box-shadow: 0px 12px 18px -6px rgba(0,0,0,0.3)

This is an example of the default Divi box shadow 4.

how to add Divi box shadows on columns
  box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.3);

This is an example of the default Divi box shadow 5.

how to add Divi box shadows on columns
box-shadow: 0px 6px 0px 10px rgba(0,0,0,0.3);

This is an example of the default Divi box shadow 6.

how to add Divi box shadows on columns
  box-shadow: inset 0px 0px 18px 0px rgba(0,0,0,0.3);

This is an example of the default Divi box shadow 7.

how to add Divi box shadows on columns
box-shadow: inset 10px 10px 0px 0px rgba(0,0,0,0.3);

Does this all make sense? I hope it helps you understand which part of the box shadow code is changing which part, and that you can use this on many projects to come! If you like this type of tutorial, subscribe below and that’s what you will get!

Categories: Divi CSS Tutorials

Subscribe For More Things Like This!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, and product news. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course you can unsubscribe if you are no longer interested!

Blog Post Optin

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

8 Comments

  1. Britt Phillips

    This is great timing! I was using other CSS that stopped working.

    Reply
  2. Peter

    Thank you Nelson, you are the lifesaver!

    Reply
  3. Matt

    Thank you so much for posting this! I’m working on a project that mixes standard Divi modules with custom code modules… so my styling wasn’t exactly the same as the Divi defaults. But after finding this article, now all my box shadows match the Divi default! Wahoo!

    Reply
  4. Caroline

    Hi,

    Thank’s for your article !

    I’d like to remove totally the shadow from the image on my article… Can you share with me how I have to do please ?

    Thank you 🙂

    Reply
    • Hemant Gaba

      Hi Caroline!

      The featured image of the post does not have a box-shadow by default. Please share the URL of the post to check the image further.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Recent Posts

0

Your Cart