Jump to content

Dead space in accordion block when all sections closed (only on desktop)?

Recommended Posts

Working with an accordion that has a background/ first item expanded / not allowing multiple open items. The issue is that when all items are minimized, there's dead space at the bottom (or top, or top and bottom, depending on how the block is aligned). This issue only occurs in desktop view when "expand first item" is checked (not an issue on mobile). Looking for code or ideas to either a.) shrink accordion to original size when all items are closed on desktop OR b.) force the accordion to always have one item expanded. 


PW: Trimble2023


Thanks in advance!

Screen Shot 2023-10-24 at 12.14.18 PM.png

Screen Shot 2023-10-24 at 12.14.45 PM.png

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

You can't really get around this if you have the option for first item open selected. When you're editing the page the minimum height of the block is set at as many rows as it is currently taking up and won't go smaller than that minimum. If you want the minimum height to be smaller then you'll have to uncheck that option.

I would think that the likelihood of a user minimizing all of the accordion items is pretty low.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.