I am trying to center a dcc.input text field to the middle of the screen, however the solutions found here: Plotly Dash center dcc.Input text field nor the https://dash.plotly.com/dash-core-components/input page has proven to fix the problem. My code is:
dcc.Input(
id="textsearch",
placeholder='Write your lyrics here and press ENTER...',
type='text',
value=None,
debounce=True,
style={'width': '20%',"display":"flex", "justifyContent":'center'}
),
Ive tried the 'textAlign':'center' as well which works for the html.H6 element above the input bar. Any ideas? See the picture below for reference for what exactly i would like to happen. 