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>