You can change the width/height and spacing of the Divi gallery module by adding the following code into your Divi child theme css file; Just change the numbers to what you need 🙂

/* Divi image gallery widths */
.et_pb_gallery_grid .et_pb_gallery_item,
.et_pb_gallery_grid .column_width,
.et_pb_gallery_grid .et_pb_gallery_image,
.et_pb_gallery_grid .et_pb_gallery_image.portrait img
{
width: 220px;
}
.et_pb_gallery_grid .et_pb_gallery_image img
{
min-width: 220px;
}

/* Set the image heights */
.et_pb_gallery_grid .et_pb_gallery_image,
.et_pb_gallery_grid .et_pb_gallery_image.landscape img
{
height: 220px;
}
.et_pb_gallery_grid .et_pb_gallery_image img
{
min-height: 220px;
}

/* Set the spacing between images */
.et_pb_gallery_grid .gutter_width { width: 15px; }

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close