Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show multiple Twitter Bootstrap navbar's on the same page?

Is it possible to show more than one navbar on a given page? I'd like to have an inverted navbar fixed to the top, and then on certain pages have a second fixed navbar right under it as an additional information header.

like image 720
Devin Goble Avatar asked May 10 '13 16:05

Devin Goble


1 Answers

Sure you can have 2 navbars. You may have to tweak the code to get it the way you want...

Working Example

<div class="navbar navbar-static-top navbar-inverse">
  <div class="navbar-inner">
    <a class="brand" href="#">Brand</a>
    <ul class="nav">
      <li class="active"><a href="#">Home</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">More</a></li>
      <li><a href="#">Options</a></li>
    </ul>
  </div>
</div>
<div class="navbar">
  <div class="navbar-inner">
    <ul class="nav">
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
      <li><a href="#">Link</a></li>
    </ul>
  </div>
</div>
like image 115
Zim Avatar answered Oct 08 '22 02:10

Zim