mustafaicil Posted November 10 Share Posted November 10 For my page with my reference customer logos (www.mustafaicil.com/tr/references), I was using the Gallery Block with the simple grid in 7.0 - all logos perfectly fit in similar size boxes. I moved my site to 7.1 and now with the Gallery Section, simple grid is keeping the original sizes of the logos and cropping them. There is no option for "scale to fit". Have any of you ran into the same issue? Is there a custom code that I can use? Note: Currently I am using the masonry grid, which is not ideal for my design needs. And even that is cropping sides of some of the logos. Link to comment
tuanphan Posted November 12 Share Posted November 12 Try adding this code to Website > Website Tools (under Not Linked) > Custom CSS /* Masonry images */ .gallery-masonry .gallery-masonry-item[data-loaded] img { object-fit: contain !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
mustafaicil Posted November 26 Author Share Posted November 26 On 11/12/2023 at 11:35 AM, tuanphan said: Try adding this code to Website > Website Tools (under Not Linked) > Custom CSS /* Masonry images */ .gallery-masonry .gallery-masonry-item[data-loaded] img { object-fit: contain !important; } Unfortunately it did not work 😞 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment