0
Hello, I’m not able to align on the right the clickable texts of my menu with Bootstrap.
Here is the menu code in HTML:
<span class="menuresponsivo">
<nav class="navbar navbar-expand-lg navbar-light bg-light bg-transparent">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#" style="color:white; ">Sobre nós</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" style="color:white; ">Serviços</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" style="color:white; ">Contato</a>
</li>
</ul>
</div>
</nav>
</span>
Here is the css of the span tag I created, this tag was created to define fonts, margins, etc:
.menuresponsivo{
position: absolute;
width: 100%;
font-family: 'Open Sans', sans-serif;
margin-top: 1%;
margin-right: 2%;
}
And my menu is like in the image below, what I want is to change the "About Us", "Services", and the "Contact" to the right. I’ve tried using the text-align: right; but it won’t.
I tested by adding the navbar-right in each menu class, one by one, and it didn’t work.
– Igor
Say Igor, I was a little intrigued that it didn’t work so I saved the test on codepen and using Bootstrap 3.3.7. Isn’t that what you wanted? Look at the class of the "ul"
<ul class="nav navbar-nav navbar-right">
– squeiroz