Width issue

Hello I am trying to set a different width for different element in the web app using streamlit. However, without using the wide mode feature. How can I achieve that? See attached image. Box 1: is a form
Box 2 is a column

Hi,
I don’t know if it will work for you, but what I do is following. Using this approach, you can have smaller Box-1. But, if you want to set the size, you have to go to html coding.

col1 = st.columns([1,1,1])
col1[1].form() #your code for form here.
st.write("Your code for second box here")
1 Like