Css styling

Cant integrate the css code with my app, here is an example

st.markdown('<style>...</style>', unsafe_allow_html=True)

You need to use the unsafe_allow_html optional keyword if you pass html to st.markdown or st.write.

You can alternatively use components. Components API - Streamlit Docs

Hi, you are welcome to use my repo as a base example of how to edit the CSS in streamlit -

Hi @ahmedhassan139,

You can refer to Changing the text color of only one metric - #2 by Shawn_Pereira for help with your code.

Cheers

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