I have tried playing with the various class min/max heights and widths in CSS and can’t seem to prevent the top nav bar from collapsing my dropdown menus. I would prefer a fixed width, but full screen menu fixed to the top. The dropdowns work fine, but when I reduce the width of the browser window it collapses. I’ve removed the toggle but no love from bootstrap. Here is the code from bootstrap 2.0:
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="./index.html">Brand Name </a>
<ul class="nav">
<form class="navbar-search">
<input type="text" class="search-query" placeholder="Search Active Page...">
</form>
</ul>
<ul class="nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-user icon-white"></i> Pages<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">My Pages</a></li>
<li><a href="#">New Page</a></li>
<li class="divider"></li>
<li><a href="#">Share Your Pages</a></li>
<li><a href="#">Page Browswer</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-cog icon-white"></i> Settings<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Upload Images</a></li>
<li><a href="#">Upload Files</a></li>
<li><a href="#">Link Other Accounts</a></li>
<li><a href="#">Manage Labels</a></li>
<li class="divider"></li>
<li><a href="#">Privacy Settings</a></li>
<li><a href="#">Help</a></li>
</ul>
</li>
<li> <img src="img/small_fb_pic.jpg" vspace="5px"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
John<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Logout</a></li>
<li class="divider"></li>
<li><a href="#">Help</a></li>
</ul>
</li>
</ul> <!-- end left justified menu items -->
</div>
</div>
</div>
This is for responsive design on websites that can adjust to screen size (particularly on mobile devices). Learn more here:
http://twitter.github.com/bootstrap/scaffolding.html#responsive
To fix this on your bootstrap solution, go to the bootstrap customize page, uncheck Responsive Layouts and re-download your bootstrap files.
http://twitter.github.com/bootstrap/download.html
It’s better than editing the bootstrap files manually, imo. Hope this helps.