Main Menu- Centering

  • Author
    Posts
  • #2842673

    oakandlee
    Member

    I need the code to center my main menu on my site.

    The blog I need help with is originalpiecemag.com.

    #2842795

    jsmutek
    Member

    Hi there, try this –

    /* Center main nav */
    #menu-main-menu {
      text-align: center;
    }
    /* Remove float and set list items to inline-block */
    #menu-main-menu li {
      float: none;
      display: inline-block;
    }

The topic ‘Main Menu- Centering’ is closed to new replies.