Guest Posted March 22, 2021 Share Posted March 22, 2021 Site URL: https://www.decoratedwolves.com/ Hi, I'm looking to centre-align my gallery in rows of 3 when on desktop view in particular. Can someone please help? Also, is it possible to alter the size of the gallery images? https://www.decoratedwolves.com/ Cheers Steve Link to comment
Beyondspace Posted March 22, 2021 Share Posted March 22, 2021 37 minutes ago, decoratedwolves said: Site URL: https://www.decoratedwolves.com/ Hi, I'm looking to centre-align my gallery in rows of 3 when on desktop view in particular. Can someone please help? Also, is it possible to alter the size of the gallery images? https://www.decoratedwolves.com/ Cheers Steve Did you centering the left over like so? @media only screen and (min-width: 1296px) { .sqs-gallery-design-autocolumns-slide { position: static; } .sqs-gallery-design-autocolumns { display: grid; grid-gap: 0 0; grid-template-columns: repeat(3, 1fr); } .sqs-gallery-design-autocolumns-slide:last-child:nth-child(3n - 2) { grid-column-end: 3; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Guest Posted March 23, 2021 Share Posted March 23, 2021 On 3/22/2021 at 11:28 AM, bangank36 said: Did you centering the left over like so? @media only screen and (min-width: 1296px) { .sqs-gallery-design-autocolumns-slide { position: static; } .sqs-gallery-design-autocolumns { display: grid; grid-gap: 0 0; grid-template-columns: repeat(3, 1fr); } .sqs-gallery-design-autocolumns-slide:last-child:nth-child(3n - 2) { grid-column-end: 3; } } Hey, Yes, this looks like what I would like. However, that code didnt work on my end... Link to comment
tuanphan Posted March 25, 2021 Share Posted March 25, 2021 On 3/23/2021 at 10:49 PM, decoratedwolves said: Hey, Yes, this looks like what I would like. However, that code didnt work on my end... Have you solved it yet? 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
Guest Posted March 25, 2021 Share Posted March 25, 2021 7 hours ago, tuanphan said: Have you solved it yet? Hey, No, not managed to. Link to comment
tuanphan Posted March 29, 2021 Share Posted March 29, 2021 On 3/25/2021 at 9:35 PM, decoratedwolves said: Hey, No, not managed to. Just tested. I think the above code should work. Where did you add the code? If custom code doesn't work, try adding this to Settings > Advanced > Code Injection > Header <style> @media only screen and (min-width: 1296px) { .sqs-gallery-design-autocolumns-slide { position: static; } .sqs-gallery-design-autocolumns { display: grid; grid-gap: 0 0; grid-template-columns: repeat(3, 1fr); } .sqs-gallery-design-autocolumns-slide:last-child:nth-child(3n - 2) { grid-column-end: 3; } } </style> 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
Guest Posted May 17, 2021 Share Posted May 17, 2021 Hey, Unfortunately, 'Code Injection' is only available on Business/Commerce accounts and that code doesnt seem to work when added to 'custom CSS'. Any other options? Thanks S Link to comment
tuanphan Posted May 18, 2021 Share Posted May 18, 2021 20 hours ago, decoratedwolves said: Hey, Unfortunately, 'Code Injection' is only available on Business/Commerce accounts and that code doesnt seem to work when added to 'custom CSS'. Any other options? Thanks S Add to Design > Custom CSS @media only screen and (min-width: 1296px) { .sqs-gallery-design-autocolumns-slide { position: static; } .sqs-gallery-design-autocolumns { display: grid; grid-gap: 0 0; grid-template-columns: repeat(3, 1fr); } .sqs-gallery-design-autocolumns-slide:last-child:nth-child(3n - 2) { grid-column-end: 3; } } 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
Guest Posted May 18, 2021 Share Posted May 18, 2021 Hey, Thanks for that but this is what has happened... Link to comment
tuanphan Posted May 19, 2021 Share Posted May 19, 2021 13 hours ago, decoratedwolves said: Hey, Thanks for that but this is what has happened... Try new code @media only screen and (min-width: 1296px) { .sqs-gallery-design-autocolumns-slide { position: static; } .sqs-gallery-design-autocolumns { display: grid; grid-gap: 0 0; grid-template-columns: repeat(6, 1fr); } .sqs-gallery-design-autocolumns-slide:last-child:nth-child(2n - 7) { grid-column-end: 4; } } 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.