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?