You need to adjust the height of the navigation bar.
You can use this variable in LESS to adjust the height, and it will center the navigation bar vertically and include all the necessary additions:
@navbar-height
50px by default.
To set this up in plain CSS, you need to change the min-height of .navbar and the height of the navbar-fixed-top , and then adjust the margins of .navbar-nav .
Here's how the top should be structured (the title bar of the navigation bar is missing):
<div class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button class="navbar-toggle" data-target=".navbar-responsive-collapse" data-toggle="collapse" type="button"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" rel="home" href="/" title="www.site.nl"> <img src="//placehold.it/200x51"> </a> </div>
Bootply example: http://www.bootply.com/tOoeM8o8Om
source share