Adding padding to a submit button to better align it vertically with respect to filters with "visible" labels instead of collapsed

I am trying to align a submit form button with the rest of the filters but when displaying the label, I am having issues keeping the button aligned vertically (see image). I’ve tried stylable_containers but that seems uncompatible with the st.forms and st.from_submit_button widgets. I would like to add some top padding , hopefully that could help… injecting HTML maybe is an option, but again, it does not work with the st.submit_button() widget. Any suggestions?

Take a look at the argument vertical_alignment to st.columns.

Thank you, that worked… did not know about it, nice solution!

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