Space between elements

How to approximate these 2 elements?

st.markdown(f"{tooltip_html} Select the stack lifetime in hours for your project (e.g., 50000):“, unsafe_allow_html=True)
stack_LT = st.number_input(” ", value=50000, min_value=1, step=1)

Before the sentence was insitde number_input but I had to remove it from there to combine with a tooltip, now the distance is too big.

same here:

st.text(“Select the stack type for your project:”)
stack_type = st.selectbox(" ", [“PEM”, “AEC”])

moving the sentence inside selectboox or number_input is not a good solution for me

I gave up and decided to use a markdown instead, I what I wanted to do is not possible

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