Custom css for a particular button

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

custom_css = """
div.stButton button {
    background-color: brown;
    width: 200px;
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.


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.


Have you found the solution to your issue?