Custom css for a particular button

The following works for modifying all buttons in a streamlit app:

custom_css = """
<style>
div.stButton button {
    background-color: brown;
    width: 200px;
}
</style>
"""
st.markdown(custom_css, unsafe_allow_html=True)

…but how does one modify a particular button?

1 Like

At the top-right of the page, find that search button.

image

1 Like

Thanks @ferdy for the equivalent of “just f*king google it”.

With responses such as these, I can see why developer forums like Stack Overflow are dying while everyone switches to tools such as ChatGPT.

2 Likes

Have you found the solution to your issue?

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