Midnighthex_ Posted March 4 Share Posted March 4 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 Share Posted March 5 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? Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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 Author Share Posted March 6 Hi there, Yes it's https://midnighthex.com/home-inconstruction Link to comment
Midnighthex_ Posted March 6 Author Share Posted March 6 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 Solution Share Posted March 8 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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