Streamlit footer

Here I found an easy way to use the footer in Streamlit without importing any additional libraries.

import streamlit as st

footer="""<style>
a:link , a:visited{
color: blue;
background-color: transparent;
text-decoration: underline;
}

a:hover,  a:active {
color: red;
background-color: transparent;
text-decoration: underline;
}

.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: white;
color: black;
text-align: center;
}
</style>
<div class="footer">
<p>Developed with ❀ by <a style='display: block; text-align: center;' href="https://www.heflin.dev/" target="_blank">Heflin Stephen Raj S</a></p>
</div>
"""
st.markdown(footer,unsafe_allow_html=True)
7 Likes

Nice!
Thank you.

4 Likes

Hello @Heflin_Stephen_Raj_S , this worked for me but it is static, I want it to move to the middle when the sidebar is opened too. How to do that???

2 Likes