Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1066469
    bergtop
    Participant

    Hello,

    On the forum I found this code to always show the the mobile menu.

    .x-navbar {
      text-align: Center;
    }
    
    .x-navbar .desktop {
        display: none !important;
    }
    
    .x-navbar .x-btn-navbar {
        display: inline-block;
    }
    
    .x-nav-wrap.mobile.collapse.in {
      display: block;
    }
    
    .x-nav-wrap.mobile.collapse {
      display: none;
    }
    
    .x-nav-wrap.mobile {
      display: block;
    }

    It works great, but it pushes the mobile menu to the center, but I prefer it to be on the right. It goes to the right with text-align but the the text…also goes to the right.

    any suggestions?

    Regards,
    Dimitry

    #1066470
    bergtop
    Participant

    Oh…

    And my website is…

    http://www.brainbulb.nl/home

    #1066558
    Lely
    Moderator

    Hello Dimitry,

    To move the mobile menu button to the right, please update this:

    .x-navbar .x-btn-navbar {
        display: inline-block;
    }
    

    To this:

    .x-navbar .x-btn-navbar {
        display: inline-block;
        float: right;
    }

    Hope this helps.

    #1066677
    bergtop
    Participant

    Thanx, it works.

    I wonder is there any possibility to change the width of the mobile menu?

    Thx in advance,
    Dimitry

    #1066730
    bergtop
    Participant

    I solved it.

    `.x-navbar .mobile .x-nav {
    background: white;
    border-radius: 7px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    width: 300px;
    float: right;
    }
    ,

    Added width and float to right.

    #1066866
    Joao
    Moderator

    Glad to hear it.

    Let us know if we can help you with anything else.

    Joao

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