I tried these 2 solutions: Number 1 and Number 2.
Both of theses solutions did not work. buttons will keep showing left aligned.
Below is the code, I tried to bring buttons in different columns:
form = st.form(key='Home Page')
c1, c2, c3, c4, c5 = st.columns(5)
with c1:
employee_login = form.form_submit_button(label='Employee Log in')
with c2:
xxxx = form.text_input(label='Anything')
with c3:
admin_login = form.form_submit_button(label='Admin Log in')
with c4:
reg_new_user = form.form_submit_button(label='New User? Register here')
with c5:
yyyyy = form.text_input(label='Anything2')
Result: