| import streamlit as st | |
| # Define URLs | |
| urls = [ | |
| "https://www.example1.com", | |
| "https://www.example2.com", | |
| "https://www.example3.com", | |
| "https://www.example4.com" | |
| ] | |
| # Create a 4x4 grid of iframes with no gaps | |
| columns = st.beta_columns(4) | |
| for i in range(4): | |
| with columns[i]: | |
| iframe_code = f'<iframe src="{urls[i]}" width="100%" height="400" style="border:0;"></iframe>' | |
| st.markdown(iframe_code, unsafe_allow_html=True) | |