1. Home
  2. Navigation
  3. How to Center the Navigation Menu

How to Center the Navigation Menu

Add the CSS code below. How to Add CSS.

@media (max-width:3000px) and (min-width:881px) {
/* Main Nav */
ul.topnav { text-align: center;}
ul.topnav li {float: none; display: inline-block; }
ul.topnav li ul li {float: left; display: inline-block; }
/* For WPcart Menu Plugin */ #wpmenucartli { display: inline-block; float: none !important; }
}

Updated on March 11, 2025

Was this article helpful?

Related Articles


Need Help?

1. Try searching for answers. Try searching different terms if you can't find a answer. 2. Try troubleshooting if something is not working.

3. If you can't find answers, click to leave a comment. Provide website links and detailed information.