How to vertically align text in a column in DIVI

You are reading this because you want to easily vertically align text inside a column.

Below is the effect you are trying to achieve, the text inside the column on the right is centred vertically no matter the screen resolution.

Desktop Version



Mobile Version



To do this is relatively easy in a few steps, you will edit the column settings and add some custom CSS to the custom CSS section in Divi.

Here are the steps.

  1. Open the row settings and select the gear icon to edit the rows.

  2. Click on the design tab.

  3. Under Sizing, find the setting for "Equalize Column Heights".

  4. Now you can save and exit the row settings.
  5. Open DiVI > Theme Options and scroll down to the custom css section and insert the following css.

    .et_pb_equal_columns >.et_pb_column {
    margin-top:auto;
    margin-bottom:auto;
    }​

     
  6. Thats It. Job Done. You might need to adjust some left and right padding, but in general, your texts should be vertically centred in the DIVI design.
  • divi, vertical, align
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How To Stop Words from Breaking on Mobile in Divi

Use the following code to prevent words going to the next line in DIVI. h1, h2, h3, h4, h5, h6 {...

How to correctly embed a Vimeo video in the divi video module

The video module in DIVI is pretty slick but requires a special trick to insert videos from...

WPML shortcode for language flags

How to make a shortcode for WPML language flags.To display the language flags in a shortcode, use...

How to solve the Divi blog module hiding all blog posts

You are reading this article because you have used the DIVI blog module and when you look at your...