How do I center this menu?

Posted on 2014-08-15
Last Modified: 2014-08-15
I have a site here:

and I need to center the top menu.

Any help is appreciated.
Question by:Donnie Walker
    LVL 58

    Expert Comment

    The simple way

    #top-menu ul {
        width: 465px;
        margin: 0 auto;

    Open in new window

    LVL 25

    Accepted Solution

    #navigation .container{

    #top-menu {
       margin-left: auto;
       margin-right: auto;
       width: auto;
       padding-top: 10px;
       display: inline-block;

    remove the #top-menu rules on line 99

    Author Closing Comment

    by:Donnie Walker

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
    CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
    In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at Browse or search based on font properties or name to find a suitable font for…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now