How to center a menu
-
Hi,
Does anybody know how to center a menu when you don’t know the width? margin: 0 auto requires a width declaration. Because the menu can grow and shrink depending on the menu items I don’t know the width. It also needs to be responsive. text-align center isn’t working either.
My div and container. If anybody can help. Thanks.
<nav id="footer-navigation" class="footer-navigation" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> </nav>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to center a menu’ is closed to new replies.