How can I create horizontal rules?

I would like to have thin colored borders around some of my containers, in particular, row separators similar to horizontal rules


. How can I accomplish this?

Hi @fredzannarbor ,

A simple solution is st.write('***'). Alternatively I think the st.markdown hack with <hr> HTML inside should work too.

1 Like
st.markdown("""---""")
2 Likes

And if we’re playing code golf, you can even omit the st.markdown call!

"---"
2 Likes

st.write(β€˜


’,unsafe_allow_html=True)

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