How to vertical align center? #3174
-
Questionwith ui.row():
ui.button('Press')
ui.input('Input') How to make these two container align vertical center? |
Beta Was this translation helpful? Give feedback.
Answered by
falkoschindler
Jun 6, 2024
Replies: 1 comment 1 reply
-
Hi @tz301, You can use Tailwind's "items-center" class: with ui.row().classes('items-center'):
ui.button('Press')
ui.input('Input') ![]() Since this is a very common use case, I just created PR #3175 to introduce a dedicated parameter |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tz301
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @tz301,
You can use Tailwind's "items-center" class:
Since this is a very common use case, I just created PR #3175 to introduce a dedicated parameter
align_items
, which will part of release 1.4.27.