Reducing extra padding in containers

How I can remove extra padding without making (unsafe_allow_html=True), is there any way to use css in config.toml?

Screenshot from 2024-07-03 16-41-54
Screenshot from 2024-07-03 16-42-35

afaik the only option is to inject CSS with st.html or st.markdown as you mentioned. There is an related enhancement request open that you could upvote:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.