# Change container layout through conditional

**URL:** <https://forum.bubble.io/t/change-container-layout-through-conditional/221257>\
**Category:** Need help\
**Created:** [August 23, 2022, 4:33pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257 "2022-08-23T16:33:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jakob1](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jakob1](https://forum.bubble.io/u/Jakob1)\
**Post date:** [August 23, 2022, 4:33pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257/1 "2022-08-23T16:33:16Z")

</div>

Hi, the container layout of the current group is row. In this group there is a video and another group. (Picture 1) When the current page width is smaller than 700 px, the group shouldn’t be next to the video, but underneath, so the container layout of the parent’s group should change from row to column.  
Does somebody know how to do it? I already tried it through conditional, but you can’t choose container layout (picture 2)  
Best wishes  
Jakob  
Picture 1:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/9/79238b9920d3d8ef9ffe25a251babe7fefc9c63a.png)  
Picture 2:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9e9fb4e2238fb7273a4a203a5fb0cf2ba549299c.png)

---

<div class="post-metadata">

**Author:** ![viquarahmed07](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/viquarahmed07/32/145585_2.png) [@viquarahmed07](https://forum.bubble.io/u/viquarahmed07)\
**Post date:** [August 23, 2022, 4:41pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257/2 "2022-08-23T16:41:37Z")

</div>

Hi @Jakob1 I think we don’t have that option yet  
But what i usually do is I will create 2 groups

- 1 group with row layout & another with column layout
- Display & hide groups conditionally

Maybe its not the best solution but it works for me 🙃

![Screenshot 2022-08-23 at 18.40.38](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8c0dc8eb2bf7d5b2c63dbcf1513ccfeb30756f05.png)

---

<div class="post-metadata">

**Author:** ![Jakob1](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jakob1](https://forum.bubble.io/u/Jakob1)\
**Post date:** [August 23, 2022, 4:43pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257/3 "2022-08-23T16:43:24Z")

</div>

Ok thanks 😃

---

<div class="post-metadata">

**Author:** ![Jakob1](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jakob1](https://forum.bubble.io/u/Jakob1)\
**Post date:** [August 23, 2022, 4:59pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257/4 "2022-08-23T16:59:15Z")

</div>

Should the groups be visible on page load? Because the current page width is higher and it’s still displayed

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/b/dbfa903ffccbe4f2aa48b48ed9411761f49aa41e.png)

---

<div class="post-metadata">

**Author:** ![viquarahmed07](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/viquarahmed07/32/145585_2.png) [@viquarahmed07](https://forum.bubble.io/u/viquarahmed07)\
**Post date:** [August 23, 2022, 5:04pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257/5 "2022-08-23T17:04:33Z")

</div>

@Jakob1 well this can be done in multiple ways…  
You can make both groups not visible on page load  
When `"current page width > 800"` the group A should be visible  
When `"current page width < 800"` the group B should be visible

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 1, 2022, 4:33pm UTC](https://forum.bubble.io/t/change-container-layout-through-conditional/221257/6 "2022-11-01T16:33:48Z")

</div>

Closed on November 1, 2022, 4:33pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
