georad commited on
Commit
5021493
·
verified ·
1 Parent(s): b47a09c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -9,12 +9,15 @@ st.sidebar.text("Demo by JA-RAD")
9
  st.markdown(
10
  """
11
  <style>
 
 
 
12
  div[data-testid="stApp"] {
13
- position: fixed !important;
14
  top: 0;
15
  left: 0;
16
- right: 0;
17
- z-index: 9999 !important;
18
  background-color: rgba(255, 255, 255, 0.95); /* Optional background */
19
  padding: 10px 1rem; /* Optional padding */
20
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
@@ -28,11 +31,10 @@ st.title("SBS Mapper") # Keep your title here
28
 
29
  # Your Streamlit app content below this line
30
  st.markdown("## Welcome to the SBS Mapper App!")
31
- st.write("Trying to target the stApp container directly...")
32
  for i in range(50):
33
  st.write(f"More content: {i}")
34
 
35
-
36
  # --- PAGE SETUP ---
37
  type_text_page = st.Page(
38
  page="pages/type_text.py",
 
9
  st.markdown(
10
  """
11
  <style>
12
+ body {
13
+ margin-top: 50px; /* Adjust this value as needed for your header's height */
14
+ }
15
  div[data-testid="stApp"] {
16
+ position: fixed;
17
  top: 0;
18
  left: 0;
19
+ width: 100%;
20
+ z-index: 9999;
21
  background-color: rgba(255, 255, 255, 0.95); /* Optional background */
22
  padding: 10px 1rem; /* Optional padding */
23
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
 
31
 
32
  # Your Streamlit app content below this line
33
  st.markdown("## Welcome to the SBS Mapper App!")
34
+ st.write("Trying a different approach with body margin...")
35
  for i in range(50):
36
  st.write(f"More content: {i}")
37
 
 
38
  # --- PAGE SETUP ---
39
  type_text_page = st.Page(
40
  page="pages/type_text.py",