"Overflow items according to screen size"
Bootstrap 3.3.0 Snippet by Mehedi-BN

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-default navbar-fixed-top"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#"> Custom Company </a> </div> <div class="collapse navbar-collapse" id="main-navbar"> <ul class="nav navbar-nav hidden-md hidden-sm"> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search..."> </div> </form> <li> <a href="#" title="Sample"> <span>First</span> </a> </li> <li> <a href="#" title="Sample"> <span>Other Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Another Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Spesific Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Same Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Last Page</span> </a> </li> </ul> <ul class="nav navbar-nav hidden-lg hidden-xs"> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search..."> </div> </form> <li> <a href="#" title="Sample"> <span>First</span> </a> </li> <li> <a href="#" title="Sample"> <span>Other Page</span> </a> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> Others <b class="caret"></b> </a> <ul class="dropdown-menu"> <li> <a href="#" title="Sample"> <span>Another Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Spesific Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Same Page</span> </a> </li> <li> <a href="#" title="Sample"> <span>Last Page</span> </a> </li> </ul> </li> </ul> </div> </nav>

Related: See More


Questions / Comments: