Jump to content

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

Recommended Posts

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. 

 

Link to comment
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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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

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
On 2/15/2022 at 1:22 AM, firsttimecaller said:

Oh wow this is great thank you. 
Now I trying to get the rows either centered. 
Thanks again! 

Do you still need help?

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

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.