I am struggling to center the navbar as a whole, rather than just the contents within it.
Below is the CSS
and HTML
for my navbar.
.navbar {
border-radius: 10px 10px 30px 30px;
background: #3CE18F;
overflow: visible;
position: fixed;
bottom: 3%;
width: 90%;
}
<nav class="navbar fixed-bottom navbar-light bg-light">
<a class="navbar-brand" href="#">Fixed bottom</a>
</nav>
No matter what I try with CSS or using class names to center, the navbar always ends up left-aligned. I'm looking for a solution to perfectly center it.
Please refer to the attached image to see the issue:
https://i.sstatic.net/g275v.png
Currently, the nav bar is consistently aligned to the left. I want to avoid using padding since it may vary on different screen sizes.
Any assistance would be greatly appreciated.