7TK Posted May 26, 2022 Posted May 26, 2022 Site URL: https://www.tinanairpics.com/photo-gallery Hi Everyone, I'd like to increase the number of thumbnails per row to six when a gallery page is viewed on a screen of 1920 px or wider. Is there css code that can help me to do this? This is the page: https://www.tinanairpics.com/photo-gallery The site was created in Squarespace 7.0 and the template is Forte. Thank you in advance! 🙂
tuanphan Posted May 27, 2022 Posted May 27, 2022 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; }} 7TK 1 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!)
7TK Posted May 27, 2022 Author Posted May 27, 2022 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...
tuanphan Posted May 29, 2022 Posted May 29, 2022 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? 7TK 1 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!)
7TK Posted May 31, 2022 Author Posted May 31, 2022 (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! Edited June 6, 2022 by 7TK
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment