How can I change the position of the columns?

Hi guys, Iā€™m new on streamlit and would like to know how I can change the positions of the columns generated from st.columns().

Iā€™m collaborating on developing an app using streamlit and I need two ā€œfloatingā€ columns on the left and right sides of the page.

In the documentation, I canā€™t find any modification options for st.columns().

Something like this example:

Hi @renanrodm, welcome to the Streamlit community!

Instead of viewing them as two floating columns, you could think of this as a 3-column layout. In that case, you could use st.columns to create 3 columns, re-sizing the center column to be however much wider you desire it to be.

Best,
Randy

Hi @randyzwitch, thank you for helping me.

The idea of the project is to put a map of Rio de Janeiro occupying the whole screen with two side columns, like in the print of the previous answer.

I canā€™t use st.map() inside a central column, right?
I canā€™t find ways to reproduce this idea with streamlit.

try to do something like this :

col1,col2,col3,col4,col5,col6,col7,col8,col9,col10 = st.columns(10)

with col10 :
# do what you have to doā€¦

ps : # I said col10 but if you need more you have to add ā€œcol11ā€ and write ā€œst.columns(11)ā€

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.