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
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

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, Keyword Highlighter
If 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.