# I really want to collapse elements horizontally on this platform

**URL:** <https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279>\
**Category:** Meta\
**Created:** [September 7, 2019, 6:29am UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279 "2019-09-07T06:29:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![duke.severn](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/duke.severn/32/38191_2.png) [@duke.severn](https://forum.bubble.io/u/duke.severn)\
**Post date:** [September 7, 2019, 6:29am UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/1 "2019-09-07T06:29:58Z")

</div>

Dear @Bubble

Are you built on solid-H?

Please let me know.

-Yours truly just (unsuccessfully) trying to hack your native [.resize()](http://forum.bubble.io/t/accessing-bubbles-native-resize-function-for-horizontal-collapsing/63094) function.

ps. or whatever you use. Throw me a bone here.

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [September 7, 2019, 11:34am UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/2 "2019-09-07T11:34:05Z")

</div>

I’ve succesfully collapsed elements on bubble.

---

<div class="post-metadata">

**Author:** ![duke.severn](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/duke.severn/32/38191_2.png) [@duke.severn](https://forum.bubble.io/u/duke.severn)\
**Post date:** [September 7, 2019, 4:12pm UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/3 "2019-09-07T16:12:03Z")

</div>

Super cool. Can you achieve [this?](http://forum.bubble.io/t/accessing-bubbles-native-resize-function-for-horizontal-collapsing/63094)

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [September 7, 2019, 4:58pm UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/4 "2019-09-07T16:58:09Z")

</div>

I’m not sure where the answer is but someone already explained on the forum how to use JavaScript to collapse horizontal elements.

My personal way is by using hidden group that pushes another group by disabling max width. I hide the hidden group on certain actions or page width and then the horizontal elements can be pushed.

---

<div class="post-metadata">

**Author:** ![boostsalesgroup](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boostsalesgroup/32/47781_2.png) [@boostsalesgroup](https://forum.bubble.io/u/boostsalesgroup)\
**Post date:** [September 7, 2019, 5:31pm UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/5 "2019-09-07T17:31:23Z")

</div>

Do you have an example how your are doing this? Just curious to know because I have need of for it soon

---

<div class="post-metadata">

**Author:** ![nocodeventure](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodeventure/32/247164_2.png) [@nocodeventure](https://forum.bubble.io/u/nocodeventure)\
**Post date:** [September 7, 2019, 5:55pm UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/6 "2019-09-07T17:55:21Z")

</div>

It seems not to work anymore, I had tried this long time ago. See attached editor link.

> **[Bubble Editor - Publictestapp3](https://bubble.io/page?type=page&name=builder&id=publictestapp3&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

When I remove the left group manually from the editor the black box is pushed to the left… it’s not doing that anymore with a workflow… Weird stuff from Bubble’s side. I have set the responsiveness of both blocks to the left.

It seems the width of groups is not collapsing anymore, this did work before!

---

<div class="post-metadata">

**Author:** ![duke.severn](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/duke.severn/32/38191_2.png) [@duke.severn](https://forum.bubble.io/u/duke.severn)\
**Post date:** [September 8, 2019, 3:26am UTC](https://forum.bubble.io/t/i-really-want-to-collapse-elements-horizontally-on-this-platform/66279/7 "2019-09-08T03:26:22Z")

</div>

> [@nocodeventure](#):
>
> It seems the width of groups is not collapsing anymore, this did work before!

Too bad… Also the problem is that the black box would remain the same size anyway. The layout inside as well. What we’re gunning for here is a way that the layout would stretch out to fill the available space. I’ve managed to do it at the element level, like in the post mfly posted about doing it with a button. The problem is that I would need to do the same for every element inside the black group and in that case I might as well build my entire front end from scratch.

I know that it’s possible to do in real time, since Bubble actively does it when you resize the window. All of the elements (positioned absolute, with fixed widths and lefts and top) are recalculated. I just want access to this without resizing the actual page.
