I’m having difficulty centering my navigation elements vertically within the navbar in Boostrap 2.0. Right now, all the elements are flushed to the top of the navbar. How do I fix this?
I’m also having a hard time keeping the logo and navbar lined up with the page boundaries. If you notice, the brand and navbar float to the edges of the browser page. How do I fix this?
I want the navbar/header to have this layout:
Here’s my attempt, use the plus to see the code:
http://jsfiddle.net/tYVcY/36/embedded/result/
The way Fleetio handles the vertical alignment issue is to modify the padding on the
.navbar .nav > li > aselector.Standard Bootstrap:
Fleetio (note the padding increase):
To address the navbar stretching to the edges of the browser window horizontally, wrap the navbar within a container (i.e.,
<div class="container"></div>).