Issue
Is there any way to change the font and background color, and opacity of st.success ? Because anything doesn’t seem with default colors. Here a visual for the problem:
Solution
txt="text here"
htmlstr1=f"""<p style='background-color:green;
color:white;
font-size:18px;
border-radius:3px;
line-height:60px;
padding-left:17px;
opacity:0.6'>
{txt}</style>
<br></p>"""
st.markdown(htmlstr1,unsafe_allow_html=True)
This is an approach. It doesn't affect anywhere in my code.
Answered By - murat taşçı
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.