<p>To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a <code>.container</code>, which sets the width of your site and content.</p>
<p>To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a <code>.container</code>, which sets the width of your site and content.</p>
<divclass="bs-example">
<divclass="bs-example">
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<aclass="navbar-brand"href="#">Title</a>
<aclass="navbar-brand"href="#">Title</a>
<ulclass="nav navbar-nav">
<ulclass="nav navbar-nav">
<liclass="active"><ahref="#">Home</a></li>
<liclass="active"><ahref="#">Home</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
</ul>
</ul>
</div>
</nav>
</div><!-- /example -->
</div><!-- /example -->
{% highlight html %}
{% highlight html %}
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<aclass="navbar-brand"href="#">Title</a>
<aclass="navbar-brand"href="#">Title</a>
<ulclass="nav navbar-nav">
<ulclass="nav navbar-nav">
<liclass="active"><ahref="#">Home</a></li>
<liclass="active"><ahref="#">Home</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
</ul>
</ul>
</div>
</nav>
{% endhighlight %}
{% endhighlight %}
<divclass="bs-callout bs-callout-warning">
<divclass="bs-callout bs-callout-warning">
<h4>Make navbars accessible</h4>
<h4>Make navbars accessible</h4>
...
@@ -1049,9 +1051,9 @@ base_url: "../"
...
@@ -1049,9 +1051,9 @@ base_url: "../"
<h3id="navbar-brand">Brand</h3>
<h3id="navbar-brand">Brand</h3>
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
<divclass="bs-example">
<divclass="bs-example">
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<aclass="navbar-brand"href="#">Title</a>
<aclass="navbar-brand"href="#">Title</a>
</div>
</nav>
</div><!-- /example -->
</div><!-- /example -->
{% highlight html %}
{% highlight html %}
<aclass="navbar-brand"href="#">Title</a>
<aclass="navbar-brand"href="#">Title</a>
...
@@ -1060,13 +1062,13 @@ base_url: "../"
...
@@ -1060,13 +1062,13 @@ base_url: "../"
<h3id="navbar-nav">Nav links</h3>
<h3id="navbar-nav">Nav links</h3>
<p>Nav items are simple to add via unordered lists.</p>
<p>Nav items are simple to add via unordered lists.</p>
<divclass="bs-example">
<divclass="bs-example">
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<ulclass="nav navbar-nav">
<ulclass="nav navbar-nav">
<liclass="active"><ahref="#">Home</a></li>
<liclass="active"><ahref="#">Home</a></li>
<li><ahref="#">Link</a></li>
<li><ahref="#">Link</a></li>
<liclass="disabled"><ahref="#">Disabled</a></li>
<liclass="disabled"><ahref="#">Disabled</a></li>
</ul>
</ul>
</div>
</nav>
</div><!-- /example -->
</div><!-- /example -->
{% highlight html %}
{% highlight html %}
<ulclass="nav navbar-nav">
<ulclass="nav navbar-nav">
...
@@ -1080,14 +1082,14 @@ base_url: "../"
...
@@ -1080,14 +1082,14 @@ base_url: "../"
<p>To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.</p>
<p>To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.</p>
<p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p>
<p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p>
<divclass="bs-example">
<divclass="bs-example">
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<ahref="#"class="navbar-brand">Brand</a>
<ahref="#"class="navbar-brand">Brand</a>
<pclass="navbar-text">Signed in as Mark Otto</p>
<pclass="navbar-text">Signed in as Mark Otto</p>
</div>
</nav>
</div>
</div>
{% highlight html %}
{% highlight html %}
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<ahref="#"class="navbar-brand">Brand</a>
<ahref="#"class="navbar-brand">Brand</a>
<pclass="navbar-text">Signed in as Mark Otto</p>
<pclass="navbar-text">Signed in as Mark Otto</p>
</div>
</nav>
{% endhighlight %}
{% endhighlight %}
<h3id="navbar-links">Links</h3>
<h3id="navbar-links">Links</h3>
<p>For folks using standard links that are not within the regular navbar navigation component, use the <code>.navbar-link</code> class to add the proper colors for the default and inverse navbar options.</p>
<p>For folks using standard links that are not within the regular navbar navigation component, use the <code>.navbar-link</code> class to add the proper colors for the default and inverse navbar options.</p>
<divclass="bs-example">
<divclass="bs-example">
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<ahref="#"class="navbar-brand">Brand</a>
<ahref="#"class="navbar-brand">Brand</a>
<pclass="navbar-text pull-right">Signed in as <ahref="#"class="navbar-link">Mark Otto</a></p>
<pclass="navbar-text pull-right">Signed in as <ahref="#"class="navbar-link">Mark Otto</a></p>
</div>
</nav>
</div>
</div>
{% highlight html %}
{% highlight html %}
<divclass="navbar"role="navigation">
<navclass="navbar"role="navigation">
<ahref="#"class="navbar-brand">Brand</a>
<ahref="#"class="navbar-brand">Brand</a>
<pclass="navbar-text pull-right">Signed in as <ahref="#"class="navbar-link">Mark Otto</a></p>
<pclass="navbar-text pull-right">Signed in as <ahref="#"class="navbar-link">Mark Otto</a></p>
@@ -1235,7 +1237,7 @@ body { padding-bottom: 70px; }
...
@@ -1235,7 +1237,7 @@ body { padding-bottom: 70px; }
<h3id="navbar-static-top">Static top navbar</h3>
<h3id="navbar-static-top">Static top navbar</h3>
<p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code>. Unlike the <code>.navbar-fixed-*</code> classes, you do not need to change any padding on the <code>body</code>.</p>
<p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code>. Unlike the <code>.navbar-fixed-*</code> classes, you do not need to change any padding on the <code>body</code>.</p>
<p>To implement a collapsing responsive navbar, wrap your navbar content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.navbar-toggle</code>.</p>
<p>To implement a collapsing responsive navbar, wrap your navbar content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.navbar-toggle</code>.</p>
<p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p>
<p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p>