Hello guys,
i keep running into problems with propper alignment of components in Dash.
As you can see in the image above i have a row of two dbc.Col which aren’t aligned vertically but also have a gap inbetween.
The code snippet is the following:
html.Div(
[dbc.Row([
dbc.Col([dcc.Markdown("Recent News"),grid],style={'margin-top':10}),
dbc.Col(
dcc.Graph(config={
"displaylogo": False,
'modeBarButtonsToRemove': ['pan2d','lasso2d','toImage']},
figure = fig),
style={'margin-top':10}),])
],
),
I tried adding margin-top to align them vertically which doesn’t work. For the gap inbetween both components i tried “no_gutters” which doesn’t seem to work anymore aswell as className=“g-0”. Are there any other options to achieve the wanted alignment?