Reduce text padding

Is it possible to reduce the text padding? See the example below, I need to reduce the empty padding areas where the red arrows are pointing to.

I have tried the following method, but it does not work.

padding_top = 0
st.markdown(
    f"""
    <style>
        .reportview-container .main .block-container{{
            padding-top: {padding_top}rem;
        }}
    </style>""",
    unsafe_allow_html=True,
)

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