Tonmeister Posted July 25, 2020 Share Posted July 25, 2020 Site URL: https://wisteria-panda-z2eg.squarespace.com/ pw: rotorrotor Hi All, On the landing page of my website is a fullscreen slideshow. I would like to have the .gallery-caption pop up on the right for odd images and on the left for even images. Currently I align them to the right using: .gallery-caption { margin-right: 0em;} For odd images I simply want to define: .gallery-caption { margin-left: 0em;} My problem is that when I use .gallery-caption:n-child it turns out that child(2) refers to the caption of EVERY image, while child(1) refers to the fading between images. Does anyone know how to do this right? Thank You + Best, Gregor Link to comment
Beyondspace Posted July 25, 2020 Share Posted July 25, 2020 Hi there, you should select odd and even of caption parent .gallery-fullscreen-slideshow-item:nth-child(even) .gallery-caption { margin-left: 0 !important; margin-right: auto !important; } 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
Tonmeister Posted July 25, 2020 Author Share Posted July 25, 2020 Hi There! Thank You!! Yes, that does move it to the left. However it does it for every image. And whenever it fades to the next image it quickly jumps to the right and then back to the left. This leads me to believe, that somehow even parents refer to static images and odd parents refer to transitions. What do you think? Thank you again! Best, Gregor Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.