Closed zf-development closed 4 years ago
Hi, do you have a screenshot of your actual navbar ? Or a drawing of what you want ?
@zgagne
I believe you can achieve this by either
.ml-auto
class to push the element to the right:
<nav class="navbar ...">
<ul class="navbar-nav ml-auto">
...
</ul>
</nav>
.navbar
only contains links on the right hand side, then you can change the alignment of the .navbar
by adding .justify-content-end
class:
<nav class="navbar justify-content-end ...">
<ul class="navbar-nav">
...
</ul>
</nav>
Hope that helps.
Using .mr-auto was not working so I redownloaded the gem and it’s fixed.
I would like to add link like Login & Register to the right of my navbar.
I tried everything I know in CSS and HTML but I haven't been able to do it.
Today I'm asking you to include a possibility to add links to the right of a navbar.