Is it possible to fix a sidebar in the maximum width as the main size?
I have a st.sidebar and I would like to have it always in full widht size.
You can fiddle with the min and max width like this (or set min and max to be the same if you want to fix the width):
css = '''
<style>
[data-testid="stSidebar"]{
min-width: 400px;
max-width: 800px;
}
</style>
'''
st.markdown(css, unsafe_allow_html=True)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.