Twitter Bootstrap, keep menu aligned to container width

Viewed 6871

My question is how can I get the navigation content to align to the page content width and not be 100%. I still want the black nav background to be 100% though. You can achieve this with a navbar-fixed-top, but I don't want my nav fixed. Usually container does this for you, but in this scenario it does not margin auto the content.

I have a nav menu like this.

<div class="navbar">
  <div class="navbar-inner">
    <div class="container">

      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>

            <a class="brand visible-phone visible-tablet" href="#">Brand</a>

            <div class="nav-collapse">
                <ul class="nav">
                  <li class="active"><a href="#">Item 1</a></li>
                  <li><a href="#">Item 2</a></li>
                  <li><a href="#">Item 3</a></li>
                </ul>

            </div>

    </div>
  </div>
</div><!-- END .navbar -->
1 Answers
Related