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; }

Comments

comments

Pin It on Pinterest