HI everyone,

I was wondering how it was possible to add layering/formatting to the app with streamlit. Also if it was possible to do it with a CSS file and if yes, how ?

Thanks a lot,



Hi @Kalmouk. Great question!

For simple HTML styling like setting text color, please note that you an embed a fair amount of html (including style attribute) into Markdown. To use this, please set unsafe_allow_html=True when using st.markdown().

(Edit: This isn’t working for me. We’re looking into this!)

If you are requesting a more general ability to use CSS styling with Streamlit, please feel free to make a feature request with your requirements so that we can prioritize and design this feature.

Thanks for using Streamlit!