I have implemented a Bootstrap navbar and I am facing difficulties in centering the content within it.
<nav class="navbar navbar-light bg-light">
<div class="container">
<span class="navbar-brand mb-0 h1">
<i class="bi bi-list-check"></i>
Nav Text
</span>
</div>
</nav>
Despite trying various approaches in a CSS file, like using flexbox, I have been unsuccessful in achieving the desired center alignment:
.navbar {
display: flex;
justify-content: center;
}
It appears that no changes are reflected in the navbar, and I am unable to determine the root cause of this issue.