alsmith877 Posted March 28 Share Posted March 28 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
Beyondspace Posted March 28 Share Posted March 28 45 minutes ago, alsmith877 said: 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? Can you share your site url so we can take a look? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
alsmith877 Posted March 28 Author Share Posted March 28 https://runsantarun.squarespace.com/race-info-1 Thank you!! Link to comment
Beyondspace Posted March 28 Share Posted March 28 I suggest you using the classic section to prevent this action for markdown. If you want to keep the current section (fluid engine), we should apply some additional code to fix each item. @media (min-width: 768px) { .fe-65fddf29aa7be01c18e74fb8 { grid-template-rows: repeat(10, minmax(calc(var(--container-width)* var(--row-height-scaling-factor)), auto)); } } Let me know how it goes on your site BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
alsmith877 Posted March 29 Author Share Posted March 29 Brilliant. Thank you so much for your help. I know the old Squarepace behaved differently but I didn't know I could use the old section style. Thanks so much for going out of your way to help!!! Link to comment
alsmith877 Posted March 29 Author Share Posted March 29 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
Beyondspace Posted March 29 Share Posted March 29 2 minutes ago, alsmith877 said: 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! Sorry, you can add my code on custom CSS BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
alsmith877 Posted March 29 Author Share Posted March 29 I couldn't make it work but I decided to go with the legacy solution. I found a way to get it to do the layout I wanted. Thank you again! Beyondspace 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment