Remove border around streamlit form element

Hey guys,

is there a way to remove the border around a streamlit form container?

image

Here you go! (This will apply to all forms on the page.)

css = r'''
    <style>
        [data-testid="stForm"] {border: 0px}
    </style>
'''

st.markdown(css, unsafe_allow_html=True)
3 Likes

Thank you very much!

1 Like

There is now a border parameter for st.form as of version 1.29.0!