WordPress.org

Forums

[resolved] Center secondary navigation (5 posts)

  1. Fiffi
    Member
    Posted 1 year ago #

    Hi,
    How do I get my secondary navigation menu centred? I am using the virtue theme.

    Thanks!

    //Sophie

  2. vtxyzzy
    Member
    Posted 1 year ago #

    It is very difficult to help with this type of problem without being able to view the site. If you post a link to your site where the problem can be seen, someone may be able to help you.

  3. Fiffi
    Member
    Posted 12 months ago #

    Sorry, here is my link: http://www.profilebysobei.se
    I hope someone can give me some advice!

    //Sophie

  4. Andrew
    Nuh uh moderator
    Posted 12 months ago #

    Add this CSS:

    @media screen and (min-width: 992px) {
    
     #nav-second {
      text-align: center;
     }
    
     #nav-second ul.sf-menu,
     #nav-second ul.sf-menu > li {
      width: auto;
     }
    
     #nav-second ul.sf-menu {
      display: inline-block;
      float: none;
     }
    
     #nav-second ul.sf-menu > li {
      margin: 0 50px;
     }
    
    }

    http://wordpress.org/plugins/custom-css-manager-plugin/

  5. Fiffi
    Member
    Posted 11 months ago #

    Great, thanks a lot!!!

    //Sophie

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.