Jump to content

Remove Whitespace between Gallery Images in Wells

Recommended Posts

  • Replies 2
  • Views 171
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

@media screen and (min-width:641px) {
.collection-type-gallery.enable-gallery-thumbnails.thumbnail-view #thumbnails {
    display: grid !important;
    height: auto !important;
    grid-template-columns: repeat(3,1fr) !important;
    grid-gap: 0 0 !important;
}
div#thumbnails {
    height: auto !important;
}
.collection-type-gallery #thumbnails .thumb {
    position: static !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
}}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

That worked great!  But ran into an issue with some landscape images mixed in with the portrait images - they got squashed horizontally into portrait grid.  Is there a way of maintaining the image ratio for the landscape images (even if they go smaller to fit the vertical columns)?

landscape image in middle.jpg

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.