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)
1 Like

Thank you very much!

1 Like