Midnighthex_ Posted March 4, 2023 Share Posted March 4, 2023 Hi there, I have been playing with the CSS for some time - when I add the clickable gallery image css (this problem occurs). I'm trying to achieve two things: border around the gallery images make images clickable (css is a hidden button ) also have page code injection (automate carousel scroll) Any help to make the border not gap at the bottom of the gallery image? THANK YOU! CSS /* Gallery Images clickable & border */ section[data-section-id="64025f30663dba61c04625a5"] { li.list-item { position: relative !important; border: 1px solid black; } .list-item-content__button-container { position: absolute !important; top: 0; bottom: 0; left: 0; right: 0; } a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; border: none !important; }} Link to comment
Beyondspace Posted March 5, 2023 Share Posted March 5, 2023 21 hours ago, Midnighthex_ said: Hi there, I have been playing with the CSS for some time - when I add the clickable gallery image css (this problem occurs). I'm trying to achieve two things: border around the gallery images make images clickable (css is a hidden button ) also have page code injection (automate carousel scroll) Any help to make the border not gap at the bottom of the gallery image? THANK YOU! CSS /* Gallery Images clickable & border */ section[data-section-id="64025f30663dba61c04625a5"] { li.list-item { position: relative !important; border: 1px solid black; } .list-item-content__button-container { position: absolute !important; top: 0; bottom: 0; left: 0; right: 0; } a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; border: none !important; }} Can you share your URL so I can take a look? 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
Midnighthex_ Posted March 6, 2023 Author Share Posted March 6, 2023 Hi there, Yes it's https://midnighthex.com/home-inconstruction Link to comment
Midnighthex_ Posted March 6, 2023 Author Share Posted March 6, 2023 I used this code to hide the buttons inside the carousel images, issue is that padding left at the buttom where I want the 1px border. /* List carousel clickable */ .user-items-list-item-container[data-section-id="6319dfbecb1930144b4dd9e3"] { li.list-item { position: relative; } .list-item-content__button-container { position: static; } a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; } .list-item-content__button-container { position: static !important; }} Link to comment
Solution tuanphan Posted March 8, 2023 Solution Share Posted March 8, 2023 Add this code under (Design > Custom CSS) .user-items-list-item-container[data-section-id="64025f30663dba61c04625a5"] { .list-item-content { height: 0px; } .user-items-list-carousel__media-container { margin-bottom: 0px !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!) 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