Collapse/expand code affecting the page footer

Need help with this code https://www.wix.com/code/home/example/Collapse-Elements. It all works good but it seems to affect the page footer…
I have 8 expandable boxes on my page (all the same seize) and only one can be open at a time. When we click on a different box, it will close the box that is now open and will open the other one, thus there is always only one box open at a time! However, the page is long like if all the boxes would be open at the same time which makes a use blank space between my last box and my page footer. In the editor version, my page footer is adjusted proprely, so right under my last box, but when I look at my website online there is this huge blank space.

Can I add something to the code to fix this ??

Thanks for your help :slight_smile:
Roxanne

Hi,
Check out this article about about How Page Layout Is Affected When Elements Change Size.

Hi,
Thanks for this link. Unfortunatly it doesn’t say how to adjust the footer when the collapsed element are bigger than 70 pixels which is my case… would you have an idea ?