Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ st.title("My App with Sticky Header")
|
|
57 |
|
58 |
# Option 2: Custom sticky header implementation
|
59 |
# Uncomment and use this approach if the CSS-only solution doesn't work
|
60 |
-
|
61 |
# Custom sticky header container
|
62 |
st.markdown('<div class="sticky-header">', unsafe_allow_html=True)
|
63 |
st.title("My App with Custom Sticky Header")
|
@@ -66,7 +66,7 @@ st.markdown('</div>', unsafe_allow_html=True)
|
|
66 |
|
67 |
# Add spacer to ensure content isn't hidden under the header
|
68 |
st.markdown('<div class="sticky-header-spacer"></div>', unsafe_allow_html=True)
|
69 |
-
|
70 |
|
71 |
# Rest of your app
|
72 |
st.write("Scroll down to test the sticky header")
|
|
|
57 |
|
58 |
# Option 2: Custom sticky header implementation
|
59 |
# Uncomment and use this approach if the CSS-only solution doesn't work
|
60 |
+
|
61 |
# Custom sticky header container
|
62 |
st.markdown('<div class="sticky-header">', unsafe_allow_html=True)
|
63 |
st.title("My App with Custom Sticky Header")
|
|
|
66 |
|
67 |
# Add spacer to ensure content isn't hidden under the header
|
68 |
st.markdown('<div class="sticky-header-spacer"></div>', unsafe_allow_html=True)
|
69 |
+
|
70 |
|
71 |
# Rest of your app
|
72 |
st.write("Scroll down to test the sticky header")
|