Navbar bootstrap disappears in a certain size

0

We know that the bootstrap has the visible-xs, -sm, -md, lg and hidden-xs, -sm, -md, -lg classes to set when the menu will be displayed.

The menu switches to collapse according to browser size or device resolution.

It turns out that at one point neither of the menus appears: neither collapsed nor complete. When it is small, collapsed appears, which expands with the click. When large, the normal menu appears. However, when it is in the middle, it is without menu. How to solve this? I need the full menu to display in lg or md, and to be collapsed when sm and xs.

I do not know if I was clear. Hard to explain it. rs

    
asked by anonymous 16.03.2014 / 22:37

1 answer

1

I have so my navbar and it works perfectly:

<div class="container">
 <div class="navbar-header">
  <a href="index.php" class="navbar-brand">Início</a>
  <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
   <span class="icon-bar"></span>
  </button>
 </div>
 <div class="navbar-collapse collapse" id="navbar-main">
  <ul class="nav navbar-nav">           
   <li><a href="xxx.php">XXX</a></li>
   <li><a href="yyy.php">YYY</a></li>
   ...  
  </ul>     
 </div>
</div>

But if you put your code, or a similar example would be easier to see what happens.

    
07.04.2014 / 13:16