Jump to content

Spacing between accordion feature blocks

Recommended Posts

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
  • Replies 2
  • Created
  • Last Reply
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;
}

image.png.d741849b902fd5709d4f8c023a3676c3.png

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.