How to dynamically change the height of a section/strip?

Hi everyone,

I’m trying to change the height of my page according to the number of elements in a repeater. For example, if the repeater has 4 elements, it should have space for one single row, but if it has 8, it should have space for two rows, and so on.

The repeater is inside a strip, which is inside a section.

I believe the height of the repeater itself adapts to the number of elements, but as the strip and section have the default size of a single repeater row, when there are more than 4 elements, they don’t display.

How can I dyanamically resize the strip and the section so they adapt to the size of the repeater? Either a code or editor solution is ok.

OR

Is there a better solution for this problem?

I’m working in Wix Editor.

Thank you in advance for any help!

Andre

I wonder if the Custom Code section in the Dashboard can be used for this… :thinking:

I’m unsure if there is more to the use case but double-clicking the section below the section should fill in any space available and if you delete or add items to the repeater (either statically or via the CMS), it will adjust automatically without the need for code.

How it looks when adjusting the static items.

2025-09-12_10-34-09 (3)

And how it looks with the CMS.

2025-09-12_10-35-15 (1)

1 Like