I found another way to do this:
.headerNavMenu {
width: 100%;
display: table;
text-align: center;
margin: 0;
}
.headerNavMenu ul {
display: table-row;
}
.headerNavMenu li {
display: table-cell;
margin: 0;
}
Related Posts:
- How to add (css) classes to only one wp_nav_menu()?
- How to highlight the current page in the nav menu?
- Where is definied the theme location for the main menu in a WordPress template?
- Some doubts about WordPress handle the horizontal main menu visualization
- .current_page_ancestor broken in Twenty Eleven
- Why nav_menu_css_class doesn’t work with apply_filters?
- 3 Level Menu Navigation (3rd Level not displaying)
- How do I middle-align my header menu items in WordPress [closed]
- How to highlight current menu bar base on the URL?
- Solutions for generating dynamic javascript / CSS
- How can I display a menu on certain pages only?
- Enqueue a stylesheet for login page and make it appear in head element
- Generating CSS Files Dynamically Using PHP Scripts?
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- Enqueue Stylesheets After Theme’s “rtl.css”
- Understanding wp_add_inline_style
- Any alternate TinyMCE4 themes / subthemes?
- Hide a div that is part of all pages on one specific page
- wp_nav_menu sort order?
- Can’t get staging site to display same way as live site. Completely stumped
- Editing the custom background CSS
- Any walker causes blank menu?
- add generated stylesheet from parent theme after child-themes style.css
- How to Handle CSS for Multiple Header header.php Files?
- Get last modified date for menu link
- Convert a static website to a WordPress theme and import all existing content
- How to add nofollow to wp_nav_menu
- There’s an image named g.gif somewhere in my WordPress site
- Root Sage theme styles are not working!
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- Custom Nav Walker Displaying Values in Sub Menu
- Modify the Additional CSS section (adding a disclaimer)
- Sub folder CSS that’s read by Admin panel
- Create self-populating menu and add extra divs to the menu layout
- how to wrap tag in tag html to wordpress menu conversion
- Custom CSS without css.php file
- Dequeue a style file which is making website load slow!
- Is there an action for save_menu and/or update_menu?
- Set default screen option for appearance -> menus
- Do I need normalize.css when developing my own WordPress-theme?
- How to float an image in Gutenberg
- wp_nav_menu add something before closing container and after last list item
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- Primary navigation menu & footer not showing in category / tag page
- Using PIE CSS in WordPress. “localizing” styles
- How to override checkbox styles if these inputs have a unique id [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- Where am I doing wrong in my theme menu?
- Custom Navigation build using wp_nav_menu and walker
- How to disable wordpress from overload my stylesheet styles with customizer styles
- Recommended method for updating/adding menus when adding new theme
- Using page-id-{ID} from body_class() in local dev, versus live staging
- How do I remove inline style in featured image markup?
- different way to achive stylesheet_url
- Custom image size vs CSS sizing
- Why is my CSS not loading?
- How should I use starter content utility to show some default menus?
- Ideal inline dynamic CSS injection
- How to create and populate with few links a menu in child theme functions.php?
- Thesis -style Navigation
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- White screen when attaching css to function.php
- SVG in list-style-image breaks when adding fill
- WordPress theme resource won’t load over VPN
- CSS added through customizer neglects the need of a child theme?
- how do i develop a global nav and local nav to be wordpress dynamic?
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- multiple html/css files for wordpress theme?
- Why is my container argument not working for wp_nav_menu() [closed]
- How to create a WP theme that use BootStrap? [closed]
- Tiny MCE custom styles, and preview in the backend
- Custom nav menu not showing
- if (has_custom_menu())?
- Making a horizontal flyout menu from WordPress category listing
- WordPress custom menu can’t show 3. level submenu
- WordPress Animation Adjustments
- Building a custom menu or use a plugin?
- Find the source file causing a Mixed Content warning
- Is there a way to add classes to a page when using a Gutenberg reusable block as page layout?
- How can I show a custom WordPress menu anywhere I want on my website?
- How can I fix my theme header for my CSS stylesheet?
- Cold Fusion to WordPress
- Menu is in Reversed order
- WordPress doesn’t load css, image and js files after moving local installation folder
- Load multiple css simultaneously using functions.php
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Necessary css classes to be included in theme stylesheet
- Mobile view logo background colour in wordpress
- Problem with multiple menus in theme
- Main Menu Theme Different Output Print
- Menu item not created on theme activation
- How do I move menu to the bottom in Custom Community theme?
- Alternating CSS classes for dynamic content [closed]
- How to reuse parts of WordPress site e.g. header, footer, part of header for multiple WordPress sites?
- Creating Multiple Menus in the Thesis Theme?
- Detect custom font size
- HTML to WORDPRESS [closed]
- Add wrapper for a specific sub-menu
- Align images to the left of the content