How add non-functional details to the sidebar bottom in a multipage app?

Would like to add some non-functional details like user info, env, copyright etc. to the complete bottom of the sidebar that is auto generated by multipage app.

Tried to use st.sidebar.empty() st.sidebar.write(“—”) etc. but the widgets/text not getting docked to bottom of the sidebar.

Can you please help?

Streamlit v1.46.0

Thanks

One option is to use CSS to move it to the bottom:

import streamlit as st

with st.sidebar.container(key="sidebar_bottom"):
    st.write("Copyright © 2025")
    st.write("All rights reserved")

st.html("""
<style>
    .st-key-sidebar_bottom {
        position: absolute;
        bottom: 10px;
    }
</style>
""")
3 Likes

I use an easy-to-remember method - sharing this…

with st.sidebar.container(height=640, border=False):
    st.write("Put your sidebar elements here... #1")
    st.write("Put your sidebar elements here... #2")
    st.write("Put your sidebar elements here... #3")
    
st.sidebar.write("Put your footer info here...")

Adjust the height parameter as needed.

Cheers

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