Another dash_boostrap_component
question:
I have a contain that spans the whole page (vh-100
) and I want an input box in the middle of the page. However, when I use d-flex align-items-center justify-content-center
, it squishes my input box :(.
I tried other approaches to center and align but none worked. I can tell that the column gets squished thats why the input box gets squished so I tried className='col-8'
but that doesnt work either.
What can I do to get the normal size of the input box back?
rec_pg = dbc.Container(id='rec_test', children=
[
dbc.Row([
dbc.Col([
dbc.Input(id="input_test", placeholder="Type something...", type="text"),
dbc.Button("Secondary", color="secondary", className="mr-1"),
], className='col-8')
])
],
className="vh-100 d-flex align-items-center justify-content-center",
)
With no className="vh-100 d-flex align-items-center justify-content-center
:
With className="vh-100 d-flex align-items-center justify-content-center
:
Thank you!