Hi,
My first post on this forum!
I have a site built using bootstrap 3 and am trying to vertically center align the menu within its parent. I have attached a screenshot and the red line indicates where I want the menu to line up. ( CANCEL THE IMAGE UPLOAD AS APPARENTLY I AM NOT ALLOWED TO UPLOAD AN IMAGE BEING A NEW USER…geeeeez )
I am trying not to use margin-top in px as I am trying to keep fluid design.
<!-- Static navbar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
if ( function_exists( 'ot_get_option' ) ) {
$logo = ot_get_option( 'company_logo' );
}
?>
<?php
if ( !empty($logo) ) { ?>
<img src="<?php echo $logo; ?>" class="img-responsive"><?php }
else { ?>
<a class="navbar-brand" href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' ); ?></a><?php
}
?>
</div>
<div id="navbar" class="navbar-collapse collapse">
<?php
$args = array(
'menu' => 'header-menu',
'menu_class' => 'nav navbar-nav navbar-right',
'container' => 'false'
);
wp_nav_menu( $args );
?>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>