Jump to content

7.0 - Gallery Block, Different number of images on each row

Recommended Posts

Posted

Long time use of the forum, maybe the first time I can not find an answer or nugget of an answer.

My client wants a gallery block with different numbers of images on each row. 
row 1: 3 images
row 2: 2 images
row 3: 3 images
row 4: 2 images

I need it to be in the gallery block so I can use the lightbox. I have been digging into the CSS and googleing but I can't find much of anything. I don't know if this one is possible. 

Thanks in advance. 

 

Posted
53 minutes ago, firsttimecaller said:

Long time use of the forum, maybe the first time I can not find an answer or nugget of an answer.

My client wants a gallery block with different numbers of images on each row. 
row 1: 3 images
row 2: 2 images
row 3: 3 images
row 4: 2 images

I need it to be in the gallery block so I can use the lightbox. I have been digging into the CSS and googleing but I can't find much of anything. I don't know if this one is possible. 

Thanks in advance. 

 

Can you share your site with the protected password so We can take a look at your issue?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

Posted
On 2/9/2022 at 1:44 AM, firsttimecaller said:

Sure. It is the gallery block on this page.

https://green-coyote-gf8a.squarespace.com/a-long-and-echoing-light-2

pass: abc

Try adding to Design > Custom CSS

@media screen and (min-width:901px) {
div#block-9e1c2dec14d2b5a72351 {
.slide {
    clear: none !important;
}
.slide:nth-child(5n), .slide:nth-child(5n+4) {
    width: 50% !important;
}
.slide:nth-child(5n+4) {clear: left !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!)

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.