I have a problem with my navbar. I use Bootstrap 3.3.7.
My navbar needs to collapse at 1200px but it's still not working. When my navbar at 770px collapse then my navbar-brand is not correctly working. The search field went under the button but I want that is all on one line the whole time.
I try a lot and search a lot. (e.g. Bootstrap 3 Navbar Collapse )
Code:
<div class="container">
<nav class="navbar navbar-default navbar-expand-lg bg-light">
<div class="container-fluid">
<span class="navbar-brand" id="navbarbrand" href="#">
<form class="navbar-form">
<button id="addDoku" type="button" class="btn btn-default " data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-plus"></span></button>
<input type="text" name="search" onkeyup="searchFunction1()" id="search" class="form-control" placeholder="Search">
</form>
</span>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="nav navbar-nav navbar-right">
<li><a href="#vorlagen">Vorlagen</a></li>
<li><a href="#allgemein">Allgemein</a></li>
<li><a href="#netzwerk">Netzwerk</a></li>
<li><a href="#rma">RMA Support</a></li>
<li><a href="#honeywell">Honeywell</a></li>
<li><a href="#vocollect">Vocollect</a></li>
<li><a href="#voiceman">VoiceMan</a></li>
<li><a href="#sap">SAP</a></li>
<li><a href="#sonstige">Sonstige</a></li>
</ul>
</div>
</div>
</nav>
EDIT
This is what I want to avoid both of them:
EDIT
I add my css with this link
<link href="Stylesheet2.css" rel="stylesheet">
But I have some other CSS style in this file. Maybe this is the problem? What I mean is that the @media needs to be in an extra CSS file?