Vertically align text and images in Divi using custom CSS

Text and image content looks stylish when vertically aligned. The problem is that Divi does not make vertical alignment very easy – so we must use some custom CSS.

Follow us in this Divi tutorial as we show you how to vertically align your Divi content.

Method 1: Vertically align content in a row using Flex and auto-margin

  1. In your row settings Design tab, click on the Sizing tab and set the Equalize Column Heights to yes..
  2. Add margin:auto; to the Advanced Tab of the row column that you would like to vertically align.

Method 2: Vertically align content in a row using CSS Flex direction

  1. In your row settings Design tab, click on the Sizing tab and set the Equalize Column Heights to yes..
  2. Add display: flex; flex-direction: column; justify-content: center; to the Advanced Tab of the row column that you would like to vertically align.

Method 3: Vertically align content in the center of a column using CSS Flexbox

  1. In your row settings Design tab, click on the Sizing tab and set the Equalize Column Heights to yes..
  2. Add align-self: center; to the Advanced Tab of the row column that you would like to vertically align.
Vertically Center Content in Divi
written by

David Wilkinson

Customer Support & Research Analyst

You have probably seen his name around but today we want to introduce David to you. We love your brain and the way it works, constantly ticking and analyzing how we can make processes better.