I am wanting to place my logout button in the header and on the right side, but as much as I try and put and remove Bootstrap 5 classes I am not able to achieve this.
The button is currently located there and I marked where I want it to be.
And this is my code in html:
<header class="bg-dark border-bottom box-shadow mb-3">
<div class="navbar-header p-2">
<a class="btn btn-danger" href="~/Home/Login">Cerrar Sesión</a>
</div>
</header>
Any help or advice? I already tried position-absolute
but this takes it out of my black stripe, end-0
or me-0
they didn't work either, they left it on the left side.
If I use all 3 together it works but it takes me out of the black stripe.
Thank you!
Add to the div containing the button:
Example:
I see you are using bootstrap
I leave you an example of what you seem to want to do published in the following link of the w3schools navbar
I still leave you the example code: