Hi,
how can I set the layout for html.Div elements, like a header to prevent moving, when resizing the window.
First example (window size = 100%)
Second example (window size = 110%)
The code for the layout looks like this
dbc.Row([
dbc.Col([
html.Div([html.H5('Gesteinskörnung', style={"height": "10px", 'margin-top': '12px', 'margin-bottom':'2px', 'justyfy-content': 'center'}),
], style={'text-align':'left', "width": "15%", 'margin-right':'25px'}),
html.Div([html.H5('Menge [kg]', style={"height": "10px", 'margin-top': '12px', 'margin-bottom':'2px', 'justyfy-content': 'center'}),
], style={'text-align':'left', "width": "13%", 'margin-right':'25px'}),
html.Div([html.H5('Transport', style={"height": "10px", 'margin-top': '12px', 'margin-bottom':'2px', 'justyfy-content': 'center'}),
], style={'text-align':'left', "width": "15%", 'margin-right':'25px'}),
html.Div([html.H5('Entfernung [km]', style={"height": "10px", 'margin-top': '12px', 'margin-bottom':'2px', 'justyfy-content': 'center'}),
], style={'text-align':'left', "width": "14%"}),
], style={'display':'flex', 'width':'30%'}),
]),
Thank you for your help!