Center Align the Image in the Divi Person Module

|

When the Divi Person module is displayed in a narrow width (e.g. in a two-column row), the person image will appear above the title and description and is left-aligned by default. Unfortunately, there isn't an option to center align this image directly within the module settings. However, you can achieve the desired alignment by adding a bit of custom CSS.

Below are examples of how the Person module looks before and after center aligning the image:

Before
After

Center align the Divi person module image using CSS

Here are the steps to center align the image in the Divi Person module using custom CSS:

1) Navigate to the page where you have the Person module.

2) Enable the Divi Builder and open the settings for the Person module you want to edit.

3) Within the Person module settings, click on the Advanced tab.

4) Scroll down to the Custom CSS section.

5) In the Member Image field, paste the following CSS:

margin-left: auto;
margin-right: auto;
This will center the image within the Person module.

Here is an example screenshot of where to add the CSS in the Person module's settings:

6) Save your changes and exit the settings.

By following these steps, you can easily center align the image in the Divi Person module, helping to make your images look more balanced and professional.

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.