Add a Parallelogram Background to a Divi Column

Written by Dan Mossop

Looking to add a unique twist to your Divi columns? Styling a Divi column’s background as a parallelogram is a striking way to enhance your page design. Follow the steps below to achieve this effect using custom CSS in Divi.

Before diving into the steps, here’s a preview of what we'll accomplish:

Add a Parallelogram Background to a Divi Column using CSS

1. Open Divi Builder

Navigate to the page where you want to apply the parallelogram effect and open the Divi Builder. Find the specific column you'd like to style.

2. Locate the Column's "Before" Custom CSS Box

Access the Column Settings:

  • Click on the settings icon for the column.
  • Go to the "Advanced" tab and then the "Custom CSS" section.
  • Under "Module Elements," locate the "Before" option.

3. Insert the CSS Code

Copy and paste the following CSS code under "Before" to create the parallelogram effect:

content: "";
background: rgba(128,128,255,0.3);
position: absolute;
width: 100%;
height: 100%;
transform: skew(10deg); /* Set parallelogram angle */
padding: 40px; /* Add padding to ensure content covered */
top: -40px; /* Compensate for padding (set to 0px if no padding) */
left: -40px; /* Compensate for padding (set to 0px if no padding) */

Here’s a break down of the CSS:

  • content: ""; Ensures the pseudo-element is visible.
  • background: rgba(128, 128, 255, 0.3); Sets the background color; adjust as needed.
  • position: absolute; Positions the pseudo-element relative to its container.
  • width: 100%; height: 100%; Ensures the pseudo-element covers the entire column.
  • transform: skew(10deg); Applies the skew effect to create the parallelogram.
  • padding: 40px; top: -40px; left: -40px; Adjusts padding to ensure the skewed element covers the column area without gaps.

Enhance Your Designs with Dynamic Content!

Elevate your Divi site by integrating ACF dynamic content into your custom designs. The Divi Dynamic Content Extended plugin seamlessly brings interactive elements to your pages, making them smarter and more visually appealing.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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

We may earn a commission when you visit links on our website.

Latest Posts

Hide the Page Title in the Hello Elementor Theme

Hiding the page title in the Hello Elementor theme allows you to create a cleaner and more customized page layout, free from default headings that may not fit your design. This is particularly useful for landing pages or custom content layouts where the default page...

How to Hide a Divi Module When Scrolling Up or Down

In this quick tutorial, I’ll show you how to hide a Divi module when scrolling in a specific direction (up or down), so that the module only shows when you want it to. This is especially useful when using Divi’s Scroll Effects feature and you have a effect you want to...

Fade a Divi Image Module Edge into the Background

Want to create a stylish fade effect on your Divi image module—where one side fades smoothly into the background? With a bit of CSS, you can make any edge (or corner) of the image fade out: top, bottom, left, right, or even diagonally.Fade a Divi Image Module Edge...

Hide the Header and Footer in the Hello Elementor Theme

Removing the default header and footer from your Hello Elementor theme allows for a streamlined and distraction-free website design. This is especially useful when creating unique landing pages, full-width layouts, or custom headers and footers with a page builder. In...

Setting up the Divi Password Box Module

Setting up password protection on a page can help you control access to sensitive or private content in WordPress, allowing only authorized visitors to view certain sections. With the Divi Password Box module, you can replace the plain Divi password form with a fully...

Random Posts