Add Border to Divi Image Gallery Images

Written by Dan Mossop

If you'd like to add a border to images in the Divi Theme's image gallery module (in grid view), you can do it like so:

/* Add a border to the images */
.et_pb_gallery_grid .et_pb_gallery_image 
{ 
    box-sizing:border-box;
    border:1px solid black; 
}

Enhance Your Divi Gallery Module Easily

Divi Gallery Booster adds all the missing styling options you need for your Divi gallery modules. Easily add borders, customize backgrounds, and more to create eye-catching image displays with minimal effort. Perfect for web designers aiming to impress clients with stunning galleries.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

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.