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; }
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; }
We may earn a commission when you visit links on our website.
Divi’s Gallery module offers a great way to showcase images, but it can sometimes stretch or crop them in unwanted ways. This article explains how to manage the module’s image scaling behavior to ensure your images are displayed at the correct size and aspect...
Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...
Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...
Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...
Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...
0 Comments