Jump to content

Increasing thumbnails per row in gallery

Recommended Posts

Posted

Add to Design > Custom CSS

@media screen and (min-width:1920px) {
div#block-yui_3_17_2_1_1652133655209_1816 .slide {
    width: 16.6666% !important;
    clear: none !important;
}
div#block-yui_3_17_2_1_1652133655209_1816 .slide:nth-child(6n+1) {
    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!)

Posted

Thanks, tuanphan! 🙂 That worked, as your solutions always do!

Do you know if it's possible to do this without decreasing the size of each thumbnail?

What I'd like to decrease is the amount of white space on the left and right side of each row of thumbnails, if that's possible. That was my real goal in increasing the number of thumbnails to six in wider screens.  

In other words, in wider screens, I'd like six thumbnails to appear in each row so that more of the screen-width is used up, if that makes sense...

 

Posted
On 5/27/2022 at 11:49 PM, 7TK said:

Thanks, tuanphan! 🙂 That worked, as your solutions always do!

Do you know if it's possible to do this without decreasing the size of each thumbnail?

What I'd like to decrease is the amount of white space on the left and right side of each row of thumbnails, if that's possible. That was my real goal in increasing the number of thumbnails to six in wider screens.  

In other words, in wider screens, I'd like six thumbnails to appear in each row so that more of the screen-width is used up, if that makes sense...

 

It looks fine to me. Can you take a screenshot & explain?

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!)

Posted (edited)

Hi @tuanphan,

I've attached screenshots of how the page looks with the code you provided (6 thumbnails per row) and without the code you provided (4 thumbnails per row).

You can see that the size of the thumbnails has decreased when I include the code to have six thumbnails per row.

I'm wondering if there's a way of maintaining the original size of the thumbnails, so that they don't decrease in size when I add your code.

It looks to me like the width of the area in which the thumbnails appear is preset - is there a way of expanding the page width where the thumbnails appear? I think then the thumbnails won't decrease in size when I add your code.

Thanks again for all your help!



 

 

Screen Shot 2022-05-31 at 5.35.59 PM.png

Screen Shot 2022-05-31 at 5.36.56 PM.png

Edited by 7TK

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.