Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #901143
    jsjmccracken
    Participant

    Hello,

    On http://www.tablerockkennels.com/ how do I center the toggle navigation when the website responds to the screen size? It’s currently on the right but I would like it to be centered.

    Thank you!

    Jacob

    #902015
    Thai
    Moderator

    Hi Jaob,

    Please add the following CSS under Customizer > Custom > Global CSS:

    .x-btn-navbar {
        display: block !important;
        margin-right: auto;
        margin-left: auto;
        width: 45px;
        float: none;
        margin-top: 20px;
      }

    Hope it helps 🙂

    #902217
    jsjmccracken
    Participant
    This reply has been marked as private.
    #902995
    Nico
    Moderator

    Hi There,

    Change the code above into this:

    .x-btn-navbar {
        margin-right: auto;
        margin-left: auto;
        width: 50px;
        float: none;
        margin-top: 10px;
        margin-bottom: 10px;
      }
    

    Add this code to center your logo in mobile view.

    @media (max-width: 979px){
        margin: 0 auto;
        width: 375px;
        float:none;
    }

    Let us know how it goes. Hope it helps

    Thanks.

    #903013
    jsjmccracken
    Participant

    When the site is in mobile view the toggle navigation is still on the right. I would like it to be centered below the logo.

    #903798
    Jack
    Keymaster

    Hi there,

    Thanks for writing back!

    Try adding the following Custom CSS within Appearance > Customizer > Custom > CSS.

    .x-btn-navbar, .x-btn-navbar.collapsed {
        font-size: 24px;
        margin-top: 10%;
        margin-right: 50%;
    }

    Thank you!

    #904249
    jsjmccracken
    Participant

    This is the lead I needed, Thank you!

    #905081
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-901143 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>