Starting from a navbar
of Bootstrap standard we need that some buttons or links are aligned to the left, others to the center (for example: our icon brand
) and others to the right.
This was the first thing I tried to do:
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="navbar-left"><a href="#">Izquierda 1</a></li>
<li class="navbar-left"><a href="#">Izquierda 2</a></li>
<li class="active"><a href="#">Center 1</a></li>
<li><a href="#">Center</a></li>
<li class="navbar-right"><a href="#">Derecha 1</a></li>
<li class="navbar-right"><a href="#">Derecha 2</a></li>
</ul>
</div>
</nav>
Looking in the Bootstrap 3 documentation, I did not find any example or idea of how to achieve it. How could it be done?