Jump to content

Help with Accordion Markdown

Recommended Posts

Hello! I've used some simple jquery, CSS, and markdown to create an accordion. There are lots of simple instructions on how to do this online, and it works great. 

The trouble is, it is forcing my section to the full height of having every accordion item expanded. So when nothing is expanded, there is a sea of white space below my accordion. It's the space that would be occupied if every item was expanded. How do I get squarepace to auto-adjust the height of my section to match only what is currently displayed?

Link to comment

I'm already in your debt, but I'd like to ask another one. The solution works in the legacy section, but also, the old sections are the worst, so I'm trying your other method too.

Is this code CSS? Or embedded code block? I have very little actual coding knowledge, so all I can do is copy/paste what you give me and stick where you tell me to and cross my fingers. Currently I can't get it to work. Thanks again!

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.