Hi,
I’m trying to set a tile in the top center of the page , it is working with this code :
st.markdown("<span class='custom-title'>Title</span>", unsafe_allow_html=True)
.custom-title {
position: fixed;
top: 0;
left: 0;
right: 0;
padding: 10px;
z-index: 99999999;
text-align: center;
font-family: monospace;
letter-spacing: -.99px;
font-family: Inter;
font-size: 19px;
padding-top: 24px;
font-weight: 700;
line-height: 120%;
}
the result :
but the drawback of this code is I cannot click to close the sidebar anymore because of this css attribute z-index: 99999999;
when I try to remove the z-index: 99999999; from the css class , the Title disapeared. Could you help please to resolv this issue ?
thanks