How to Equalize Recent Post Heights in Divi

This tutorial explains how to easily equalise Divi recent post heights on your website to create a more balanced and clean look for each of your recent posts.

So you’ve set up your blog module within your Divi theme and written a few articles with excerpts. But once you’ve styled those modules they’re not equal heights especially with your new background colour for them.

In today’s article we’re going to discuss how to equalize the column heights within the Divi blog module to get that clean equalised look.

Step 1:

Set a background or border style and colour. Within the blog module settings you’ll want to set a background colour for the block or a border, at the time of writing this the border settings are within the design tab and the background settings are in the content tab.

Step 2:

Write your CSS code to equalise the columns. To do this we want to set a height for the columns within the row as well as a minimum height so that they’re all the same size. Here’s the code:

.et_pb_blog_grid .et_pb_post {
    min-height: 250px;

    height: 250px;
}

You can set the height settings on your website to whatever matches the design and looks the best.

Step 3 :

Ensuring your content fits within the equalised column heights. To do this there’s two potential methods and each has their own merits.

Option 1:

Ensure that all of the excerpts that you write for your blog content are no longer than the content that will fit within the content box e.g. if you know that 100 words is too big for the  box you wouldn’t write more than that.

Option 2:

Make the box scroll-able you can do this with the below CSS code:

.et_pb_blog_grid .et_pb_post  {

Overflow: Scroll

 }

So for example with all of the CSS together it would look like this:

.et_pb_blog_grid .et_pb_post {

    Overflow: Scroll
    min-height: 250px;

    height: 250px;

}
Step 4:

Where to add the CSS. Although the module has built-in CSS functionality in this instance it’s easier to add the CSS to the built in Divi CSS panel.

To learn more about adding CSS to Divi or WordPress take a look at:

Adding CSS to Divi

Adding CSS to WordPress

Overall this is a relatively simple tip to help you add a few lines of CSS to equalise the blog column heights. We’d appreciate a share or any comments if you found this useful, thanks!

Tech Typed
Tech Typed
Articles: 186

Leave a Reply

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