# Nested Containers

**URL:** <https://discuss.streamlit.io/t/nested-containers/11850>\
**Category:** Using Streamlit\
**Created:** [April 13, 2021, 8:33pm UTC](https://discuss.streamlit.io/t/nested-containers/11850 "2021-04-13T20:33:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryson\_Cale](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/bryson_cale/32/72841_2.png) [@Bryson\_Cale](https://discuss.streamlit.io/u/Bryson_Cale)\
**Post date:** [April 13, 2021, 8:33pm UTC](https://discuss.streamlit.io/t/nested-containers/11850/1 "2021-04-13T20:33:48Z")

</div>

I’m curious what the timeline is for being able to nest containers inside a Streamlit app. I want to do something like the following:

`col1, col2 = st.beta_columns(2)`  
`col3, col4 = col1.beta_columns(2)`

I know others have come up with ways to accomplish this through writing custom Python classes + special html formatting “built-in” to the class, e.g - [see here](https://discuss.streamlit.io/t/experimenting-with-the-layout-including-a-grid/895)

If similar tooling is expected to be available in near-future releases, I don’t want to invest much time in piggy-backing off such third-party methods.

I have classes which write their Streamlit components given a context, which may just be the “top” streamlit context, or could instead be a column, beta\_container, etc.

Thanks!

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [May 13, 2022, 9:17pm UTC](https://discuss.streamlit.io/t/nested-containers/11850/2 "2022-05-13T21:17:42Z")

</div>


