Hey everyone,
I am trying to center my components in a dbc.Navbar to center vertically and for some reason. I really cannot find a reason why.
dbc.Navbar([
dbc.Container(
[
dbc.Row([
dbc.Col([
html.Img(src='data:image/png;base64,{}'.format(house_base64), height="40px", className = "ml-2 mb-1"),
dbc.NavbarBrand("Atlantic Hydraulics Verification", className="ms-3 font-weight-bold")
],
width={"size":"auto"})
],
align="center",
className="g-0"),
dbc.Row([
dbc.Col([
dbc.Nav([
dbc.NavItem(dbc.NavLink(children = [
html.Img(src = 'data:image/png;base64,{}'.format(house_base64), height = "20 px"),
html.Br(),
"Home"
], className = "mb-2", style = {"textAlign": "center"})),
dbc.NavItem(dbc.NavLink(id = "link-documentation", children = [
html.Img(src = 'data:image/png;base64,{}'.format(document_base64), height = "20 px"),
html.Br(),
"Documentation",
], style = {"textAlign": "center"}
)),
dbc.NavItem(
dbc.NavLink(
id = "link-themes",
children = [
html.Img(src = 'data:image/png;base64,{}'.format(pipette_base64), height = "20 px"),
html.Br(),
" Themes",
],
style = {"textAlign": "center"}, n_clicks = 0
)
),
],
navbar=True
)
],
width={"size":"auto"})
],
align="center"),
dbc.Col(dbc.NavbarToggler(id="navbar-toggler", n_clicks=0)),
dbc.Row([
dbc.Col(
dbc.Nav([
html.Img(
src = 'data:image/png;base64,{}'.format(grundfos_logo_base64),
height = 30,
),
])
)
],
align="center")
],
fluid=True
),
],
color = "primary",
dark = True,
sticky = "top",
),
When I run the code, the Navbar looks like this:
To make it look more visible, I took a screen when viewing with F12:
Any ideas? Thanks!