Support » Theme: Baskerville » How to Center Nav Menu?

  • I see a post from 4 years ago, but that CSS doens’t work. I’m trying this, but my entire nav menu is floating left. IF I type right for float below, it does float right. Thoughts?

    .main-navigation {
        text-align: center;
    		margin: auto;
    		float: none;
    		position: relative;
    }
Viewing 1 replies (of 1 total)
  • Christian Sabo

    (@pixelverbieger)

    maybe this helps!?

    .section-inner {
        text-align: center;
    }
    
    .main-menu {
        display: inline-block;
        vertical-align: bottom;
    }
    .main-menu ul a {
        text-align: center;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘How to Center Nav Menu?’ is closed to new replies.