St.Columns Responsive Behavior

Hi,

I try to re-create the responsive st.columns example from the blog:

(scroll to the gif right after the text “yes, columns are beautiful across devices”)

But I am not able to create the same behavior that is shown there. For me, the Columns never change the number of elements displayed in one line, besides on a very narrow screen.

In the example, the columns dynamically adjust to different screen-sizes and change the number of items that are put into one ‘line’.

How to achieve this?

I wasn’t even aware that Streamlit used to have that flex behavior. All of the recent versions of Streamlit I’m familiar with only have two modes: All columns in a row, or fully stacked. That blog post is prior to the release of Streamlit 1.0.0. It looks like the behavior might have changed in version 0.86.0: 2021 release notes - Streamlit Docs

Here are a couple related feature requests that you might want to upvote:

Hi, thanks for your answer. I upvoted the issues :slight_smile: