I am looking for a way to toggle navigation buttons in order to occupy the entire width. Currently, the buttons do not fill all available space as shown in this example on jsfiddle: example in jsfiddle
Here is the code I am using:
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<div class="btn-group navbar-btn">
<button type="button" class="btn btn-default dropdown-toggle navbar-toggle" data-toggle="dropdown" aria-expanded="false">
Categories <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Cat 1</a></li>
<li><a href="#">Cat 2</a></li>
</ul>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
Filters <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Filter 1</a></li>
<li><a href="#">Filter 2</a></li>
</ul>
</div>
<div class="btn-group navbar-right navbar-btn" role="group" aria-label="">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-th" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
</button>
</div>
<form class="navbar-form navbar-right" role="search">
<input type="text" class="form-control" placeholder="Search">
</form>
</div>
If anyone has a solution, I would greatly appreciate it!
Thank you!