I just started using Bootstrap today and I'm having this alignment issue with the navbar. The links move to the next line on desktop:
Here's a working demo: http://jsfiddle.net/b5mbbwgb
The code:
<div class = "navbar navbar-inverse navbar-static-top">
<div class = "container">
<div class="navbar-header">
<button class = "navbar-toggle pull-left" data-toggle = "collapse" data-target = "#nav-header-links-collapse">
<span class = "icon-bar"></span>
<span class = "icon-bar"></span>
<span class = "icon-bar"></span>
</button>
<a class="navbar-brand navbar-brand-centered" href="#" data-toggle = "collapse" data-target = "#nav-header-logo-collapse">
<img alt="logo" width="164" height="30" src="http://placehold.it/164x30?text=LOGO">
</a>
<a class = "navbar-toggle pull-right glyphicon glyphicon-search" data-toggle = "collapse" data-target = "#nav-header-search-collapse">
</a>
</div>
<div class = "collapse navbar-collapse" id="nav-header-search-collapse">
<form class="nav navbar-form" role="search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search" name="q">
<div class="input-group-btn">
<button class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
</div>
</div>
</form>
</div>
<div class = "collapse navbar-collapse" id="nav-header-links-collapse">
<ul class = "nav navbar-nav navbar-right">
<li class = "active"><a href = "#">Home</a></li>
<li><a href = "#">Social</a></li>
<li><a href = "#">Contact</a></li>
<li><a href = "#">About</a></li>
</ul>
</div>
</div>
</div>
After numerous attempts I'm not able to fix these issues:
- Links move to the next line
- Search input has lines on top & bottom on mobile. See screenshot below
Can someone give me a hint on what needs to be done to fix these 2 issues? I'm learning, so I'd appreciate a basic explanation too. Thanks!

