• Resolved hertniks

    (@hertniks)


    How can I center the menu bar? It is on the right side, but I need it to be in the center.
    I have tried this, but it doesnt work:

    @media screen and (min-width: 768px) and (max-width: 1024px) {
        body .navbar-nav>li {
            float: none;
        }
    
        body .nav>li>a {
            display: inline;
        }
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • hello hertniks,

    In your css, try

    .nav {
    text-align: center;
    }

    if the above code does not work, try the code below

    .navbar-nav {
    text-align: center;
    }

    Thread Starter hertniks

    (@hertniks)

    Thanks! Neither work though. Here is the website: https://riku.hertniks.com

    I have been trying to figure this out for the whole day and it drives me crazy.

    @media (max-width: 767px)
    .navbar-inverse .navbar-nav > li a {
    text-align: left; <—– delete this
    }

    Thread Starter hertniks

    (@hertniks)

    I cannot find this code in my css.
    This is all I have:

    .navbar-inverse .navbar-nav>li>a {
        color: white !important;
        padding: 0;
        line-height: 35px;
    
    }

    In your custom CSS, add this to the very end:

    @media screen and (min-width: 767px) {
       nav#site-navigation {
          float:none;
          margin: 0 auto;
          display: table !important;
       }
    }

    Thread Starter hertniks

    (@hertniks)

    Thank you CrouchingBruin! This worked, but brought another problem. (some graphical glitches) I don’t have time to fiddle with it now, but the main problem is solved! Thanks!

    I need help with my menu bar I want to show the page “Daily Samata”
    on the home page but I can’t seem to change nor does it show up in my “pages” center

    and in the right sidebar is an image that I need to change and the button is coral which I need to change as well but I can’t seem to find where to change it.
    And I can’t figure out how to post anything as a separate new post in this forum to get help

    Samata Mag

    I’m probably going about this all wrong but any help would be greatly appreciated. Thank you!

    • This reply was modified 8 years, 1 month ago by lucylucille.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need help centering the menu bar’ is closed to new replies.