Guest Posted July 13, 2013 Share Posted July 13, 2013 (edited) How do I add padding between images in a slider gallery? Edited July 13, 2013 by bshoop Link to comment
Nick Scola Posted July 13, 2013 Share Posted July 13, 2013 Multiple ways to do this, but heres a simple way. .sqs-gallery-design-strip-slide .sqs-wrapper img:not(:last-child) { padding-right: 10px; } Squarespace developer since 2007. I create a professional process for each client to ensure that your objectives are met and users are happy. Something I love to embrace. I'm available for hire Get in touch at http://www.nickscola.com or via email at squaretuts@gmail.com Link to comment
Guest Posted July 13, 2013 Share Posted July 13, 2013 Thanks, Nick, but that didn't work. I'm using hudson. does that matter? Link to comment
Solution Guest Posted July 14, 2013 Solution Share Posted July 14, 2013 (edited) I found something like this in another answer and it works: .sqs-gallery-design-strip img { margin-right: 2px; } Edited July 14, 2013 by bshoop Link to comment
Nick Scola Posted July 14, 2013 Share Posted July 14, 2013 I'm not sure if it does since I use it on multiple sites and it works like a charm. But found one of the solutions. Squarespace developer since 2007. I create a professional process for each client to ensure that your objectives are met and users are happy. Something I love to embrace. I'm available for hire Get in touch at http://www.nickscola.com or via email at squaretuts@gmail.com Link to comment
Good Fortune Collective Posted February 7, 2014 Share Posted February 7, 2014 (edited) The answers here work to add space between the images. But I’ve found that when you click the ’Next’ button, the position that the next image slides to is offset by the same amount of pixels you’ve added to the margin. So if you’d like a lot of space between images (lets say 40px), your gallery starts to look out-of-whack by the second or third image. Has anybody come across a solve for this? Whatever function the ’Next’ button runs on seems to account for the width of each image, but not the extra margin width you’ve added. Is there some way to force it to account for the extra pixels? Edited February 7, 2014 by Good Fortune Collective Link to comment
khglynn Posted June 1, 2014 Share Posted June 1, 2014 I'm looking for a solution to the same problem Link to comment
jnkappe Posted August 24, 2014 Share Posted August 24, 2014 Is there a solution to this yet? I'm having the same problem. Link to comment
vic Posted May 1, 2016 Share Posted May 1, 2016 bshoop's worked for me... thanks. Nick Scola's worked too but only after I removed the "-slide" that comes after "strip" like this:.sqs-gallery-design-strip .sqs-wrapper img:not(:last-child) { padding-right: 15px; } Link to comment
seedarchitect Posted December 6, 2017 Share Posted December 6, 2017 Hey guys, I have never done any coding, but want to add the padding on my carousel gallery block. Where do I insert this code? Link to comment
Tech Guy Posted December 19, 2017 Share Posted December 19, 2017 @Nick Scola @bshoop Where do we insert this code please? Thank you. Link to comment
PioneerStudio Posted January 13, 2020 Share Posted January 13, 2020 I went to Design/Custom CSS and added this code into the box: .sqs-gallery-design-strip .sqs-wrapper img:not(:last-child) { padding-right: 10px; } You can then change the 10px to whatever suits. Hope that helps! Link to comment
delmi Posted June 29, 2022 Share Posted June 29, 2022 On 6/24/2022 at 12:11 PM, tuanphan said: What is your site url? We can take a look www.delmialvarez.com Link to comment
tuanphan Posted June 30, 2022 Share Posted June 30, 2022 20 hours ago, delmi said: www.delmialvarez.com Which gallery page are you referring to? 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
delmi Posted June 30, 2022 Share Posted June 30, 2022 16 minutes ago, tuanphan said: Which gallery page are you referring to? 16 minutes ago, tuanphan said: Which gallery page are you referring to? On 6/24/2022 at 12:11 PM, tuanphan said: What is your site url? We can take a look THIS ONE OR ANYONE IN MY SITE: https://www.delmialvarez.com/borders-of-europe-with-rusia Link to comment
delmi Posted June 30, 2022 Share Posted June 30, 2022 But i have a most importan question ina. new topic about the effect of the. transition between images. I took as reference this site gallery: https://www.jefferysalter.com/Landscapes/1 MY question is what kind of CSS can do a similar transition between images from right to left instead to be a FADE effect like i have now here: https://www.delmialvarez.com/borders-of-europe-with-rusia Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment