Kacia Posted November 16, 2020 Share Posted November 16, 2020 Site URL: https://vibraphone-dove-dpfn.squarespace.com/our-methods Hi all, On this page (https://vibraphone-dove-dpfn.squarespace.com/our-methods, password: He@1ing), I'm using the accordion feature under the "What We Teach" section. Right now, when each markdown block is open there's about the same amount of space beneath it as above it. However, when the element is closed, there's more space below than above. I would like the space below and above to be the same whether it's open or closed. I've played around with a bunch of margin and padding but think maybe I'm not identifying the right CSS selectors? I'd appreciate any advice! Kacia Link to comment
Beyondspace Posted November 16, 2020 Share Posted November 16, 2020 2 hours ago, Kacia said: Site URL: https://vibraphone-dove-dpfn.squarespace.com/our-methods Hi all, On this page (https://vibraphone-dove-dpfn.squarespace.com/our-methods, password: He@1ing), I'm using the accordion feature under the "What We Teach" section. Right now, when each markdown block is open there's about the same amount of space beneath it as above it. However, when the element is closed, there's more space below than above. I would like the space below and above to be the same whether it's open or closed. I've played around with a bunch of margin and padding but think maybe I'm not identifying the right CSS selectors? I'd appreciate any advice! Kacia Please add this in custom css .sqs-block-markdown .sqs-block-content *:first-child { margin-top: 0; margin-bottom: 0; } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Kacia Posted November 16, 2020 Author Share Posted November 16, 2020 Thank you SO MUCH @bangank36! I was fiddling with this for hourrrrs, turns out I was missing one space. Really appreciate your help!! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.