I need to collapse the navigation bar content. I would like to have these contents displayed in the same line (inline).
<header class="navbar navbar-fixed-top" role="navigation">
<div class="navbar-inner">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-rt-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-mid-collapse">
<span class="glyphicon glyphicon-search"></span>
</button>
<a class="navbar-brand" rel="home" href="">My Project</a>
<div class="collapse navbar-collapse" id="navbar-mid-collapse">
<form class="navbar-form form-inline" role="search" method="get" id="search-form" name="search-form">
<div class="input-group">
<input type="text" class="form-control">
<div class="input-group-btn">
<button type="submit" class="btn btn-success"><span
class="glyphicon glyphicon-search"></span></button>
</div>
</div>
</form>
</div>
<div class="collapse navbar-collapse" id="navbar-rt-collapse">
<ul class="nav navbar-nav">
<li><a data-toggle="modal" href="#" data-target="#">Login</a></li>
<li><a data-toggle="modal" href="#" data-target="#">Register</a></li>
</ul>
</div>
</div>
</div>
How can I display #nabar-mid-collapse and #navbar-rt-collapse in the same line? Thank you!