Why button is upper than input

my code is as follow

with col1:
        
        year_month = st.selectbox("one", period_list, index=0)

    with col2:
        text_input = st.text_input(label='two')
    with col3:
        btn_input = st.button('Test')

the result also is:

as you can see the button is upper than input how can i fix it

thanks in advance

Hi @hasti_hakhamanesh, just before your β€˜btn_input’ line, add one/more of the following line:

st.write(β€˜β€™)

This will introduce a vertical filler and push the button down.

Cheers

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