# st.divider

Source: https://docs.streamlit.io/develop/api-reference/text/st.divider

* Function signature:

   ```python
   st.divider(*, width="stretch")
   ```

* Parameters:

   | name | type | default | description |
   |---|---|---|---|
   | width | "stretch" or int |  | The width of the divider element. This can be one of the following:  "stretch" (default): The width of the element matches the width of the parent container. An integer specifying the width in pixels: The element has a fixed width. If the specified width is greater than the width of the parent container, the width of the element matches the width of the parent container. |

Here's what it looks like in action when you have multiple elements in the app:

```python
import streamlit as st

st.write("This is some text.")

st.slider("This is a slider", 0, 100, (25, 75))

st.divider()  # 👈 Draws a horizontal rule

st.write("This text is between the horizontal rules.")

st.divider()  # 👈 Another horizontal rule
```

![](https://docs.streamlit.io/images/api/st.divider.png)
