Although I'm new to bootstrap, I am trying to create a navbar
at the top of my webpage. The navbar
should feature the brand name on the left and options on the right side. However, when using navbar-right
, it does not align properly resulting in a layout similar to this.
Everything appears squashed together with the brand name stuck on the left. While using pull-right
fixes the issue, I am curious as to why navbar-right
does not behave as expected.
homeTemplate.html
<body>
<nav class="navbar navbar-default">
<div class="navbar-inner">
<div class="container-fluid">
<div class="navbar-header">
<a href="#" class="navbar-brand">MyApp</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Profile</a></li>
<li><a href="#">Notifications</a></li>
<li><a href="#">Messages</a></li>
<li><a href="#">Options</a></li>
</ul>
</div>
</div>
</nav>
</body>