# Sticky sidebar

**URL:** <https://discuss.streamlit.io/t/sticky-sidebar/3937>\
**Category:** Using Streamlit\
**Created:** [July 1, 2020, 1:21pm UTC](https://discuss.streamlit.io/t/sticky-sidebar/3937 "2020-07-01T13:21:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin\_Miller](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/konstantin_miller/32/45111_2.png) [@Konstantin\_Miller](https://discuss.streamlit.io/u/Konstantin_Miller)\
**Post date:** [July 1, 2020, 1:21pm UTC](https://discuss.streamlit.io/t/sticky-sidebar/3937/1 "2020-07-01T13:21:52Z")

</div>

Hi,

Is it possible to make the sidebar sticky? In the sense, that it won’t collapse and also that it would hide any content behind it?

Sorry if that’s mentioned in documentation. I haven’t found it. I’ve found another question where a user is actually asking how he can collapse the sidebar. That’s funny because for me the sidebar is collapsed by default and I can’t make it stick permanently.

Cheers  
Konstantin

---

<div class="post-metadata">

**Author:** ![Konstantin\_Miller](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/konstantin_miller/32/45111_2.png) [@Konstantin\_Miller](https://discuss.streamlit.io/u/Konstantin_Miller)\
**Post date:** [July 2, 2020, 1:44pm UTC](https://discuss.streamlit.io/t/sticky-sidebar/3937/3 "2020-07-02T13:44:58Z")

</div>

Hi @srilakshmi,

Unfortunately, the following app

```auto
import streamlit as st
st.sidebar.button('Test button')
st.write('Some text')

```

loads with a collapsed side bar. And when I unfold it, “Some text” gets hidden behind it.

Cheers  
Konstantin

---

<div class="post-metadata">

**Author:** ![santhoshshenoy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/santhoshshenoy/32/5943_2.png) [@santhoshshenoy](https://discuss.streamlit.io/u/santhoshshenoy)\
**Post date:** [July 3, 2020, 7:22am UTC](https://discuss.streamlit.io/t/sticky-sidebar/3937/4 "2020-07-03T07:22:27Z")

</div>

Excellent App @srilakshmi. Is there a pointer to the source code ?

---

<div class="post-metadata">

**Author:** ![randyzwitch](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/randyzwitch/32/58772_2.png) [@randyzwitch](https://discuss.streamlit.io/u/randyzwitch)\
**Post date:** [January 12, 2022, 9:40pm UTC](https://discuss.streamlit.io/t/sticky-sidebar/3937/5 "2022-01-12T21:40:17Z")

</div>


