benji_r
benji_r

Reputation: 555

Second navbar goes under the first navbar on top

Hi I am using twitter bootstrap, and I am having two nav bar but the second navbar is hidden underneath of the first one

<div class="navbar navbar-fixed-top"> 
 <a class="brand" href="../"></a>
 <div class="navbar">
              <div class="navbar-inner">
                <div class="container">
                  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">

and the second nav menu is

<div class="tabbable">
    <ul id="myTab" class="nav nav-tabs">
      <li><a href="#home" data-toggle="tab">Home</a></li>
      <li><a href="#profile" data-toggle="tab">Profile</a></li>
      <li><a href="#messages" data-toggle="tab">Messages</a></li>
      <li><a href="#settings" data-toggle="tab">Settings</a></li>
    </ul>

here is the whole code http://jsfiddle.net/YZJ5M/

You wont be able to see my second nav as it is underneath of the first nav and I want the second nav bar to be just below it. Thank you

Upvotes: 3

Views: 9719

Answers (1)

Sidharth Mudgal
Sidharth Mudgal

Reputation: 4264

Simply take off the position: fixed rule for navbar-fixed-bottom and navbar-fixed-top. Or if you would not like to change it, add margin-top: 43px rule to your tabbable class.

Upvotes: 2

Related Questions