How to reduce line spacing in bulleted list in Streamlit?


How do I reduce the line spacing between bullet points in st.markdown?

Steps to reproduce

Code snippet:

st.markdown('- Item 1')
st.markdown('- Item 2')
st.markdown('- Item 3')

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Current Output (would like to reduce the space as indicated)

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.


  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

1 Like

Yep, thatโ€™s possible!

Hereโ€™s how:


- Item 1

- Item 2

- Item 3



1 Like

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