html - php args not centering in div -


i trying nav menu center in it's div, can't seem figure out how. please take , if can. normal text gets centered can't menu center.

html:

<div id = "nav_menu_secondary">     <div id = "center_wrap">         <?php $args = array(             'theme_location' => 'secondary' );              wp_nav_menu(  $args ); ?>     </div> </div> 

css:

#center_wrap { margin: 0 auto; text-align: center; } 

the result of wp_nav_menu() nav element, displayed block element in browsers. in case, adding text-align: center; parent has no effect. solution somehow add margin: 0 auto; nav element itself.


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -