Skip to content

How to vertical align center? #3174

Closed Answered by falkoschindler
tz301 asked this question in Q&A
Discussion options

You must be logged in to vote

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 align_items, which will part of release 1.4.27.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tz301
Comment options

Answer selected by tz301
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants