The Ultimate Divi Bundle - 5 Divi plugins. 1 great price.

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