-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
31 lines (29 loc) · 857 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import streamlit as st
# Add your horizontally scrollable content
horizontal_content = """
<div style="overflow-x: scroll;">
<p>This is a horizontally scrollable element.</p>
<p>You can add any content here that you want to scroll horizontally.</p>
<p>For example, a wide table or a long line of text.</p>
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
<th>Header 4</th>
<th>Header 5</th>
<th>Header 6</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
<td>Data 4</td>
<td>Data 5</td>
<td>Data 6</td>
</tr>
</table>
</div>
"""
# Display the horizontally scrollable element
st.write(horizontal_content, unsafe_allow_html=True)