Currently, I am in the process of designing a website and have implemented a Bootstrap navbar. The navbar consists of three icons aligned to the right, and I am looking to center another element. However, when I use mx-auto, the element does not center perfectly due to the presence of icons on the right side. Below is the code snippet:
<nav class="navbar bg-light">
<div class="container-fluid">
<div class="navbar-brand mx-auto order-0" href="#">
<a class="rainbow" href="https://en.wikipedia.org/wiki/RGB_color_model" target="_blank">color</a>dle
</div>
<div class="ms-auto order-3">
<button class="icons settings-icon"><i class="fa-solid fa-gear"></i></button>
<button class="icons leaderboard-icon"><i class="fa-regular fa-circle-question"></i></button>
<button class="icons question-icon"><i class="fa-solid fa-chart-simple"></i></button>
</div>
</div>
</nav>
Is there a way to center an element despite the presence of aligned elements on the right side?