Michael Blake Michael Blake - 7 months ago 112
CSS Question

Bootstrap - floating navbar button right

I'm using the bootstrap navigation bar, but I want to float one of the buttons to the right instead of the left as it already is. Here's the HTML:

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#">Project name</a>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact" class="navbar-nav pull-right">Contact</a></li>

I've tried using
nav navbar-nav navbar-right
, and
. I really don't know what else I could do. Any help is appreciated.



Create a separate ul.nav for just that list item and float that ul right.