I'm encountering an issue with trying to centrally align the entire menu container, highlighted in yellow, as shown in this screenshot.
Despite using "margin: auto"
, I cannot seem to get the menu container to align in the center. It continues to float towards the left.
I would greatly appreciate any assistance you can provide.
Please refer to the complete markup and CSS code below:
body {
margin: 0px;
}
.header-container {
width: 100%;
background-image: linear-gradient(to bottom, #008686, #024848);
}
.brand-logo {
height: 60px;
margin-left: 2%;
margin-right: 3%;
padding-top: 15px;
padding-bottom: 15px;
}
.menu-container {
width: fit-content;
border: 3px solid yellow;
margin: auto;
}
... (additional CSS code)
</header>