Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1149632
    yhshin1020
    Participant

    Hey,

    So i was given this piece of code to ensure that the mobile menu was fixed, instead of being overlapped like i have it on larger screens:

    @media (max-width: 979px) {
    body .x-navbar {
        position:static !important;
    }
    }

    I thought this worked, but I was wrong. This cuts off the dropdown menus on mobile.(see picture)

    How do i make it such that the header is not overlapped yet the menu still shows?

    Thank you.

    #1149634
    yhshin1020
    Participant
    This reply has been marked as private.
    #1149635
    yhshin1020
    Participant
    This reply has been marked as private.
    #1149746
    Lely
    Moderator

    Hi There,

    Thank you for the credentials. Please remove that custom CSS and then check this link:http://sevenspark.com/docs/ubermenu-3/settings/menu/submenus. Look for Mega Submenu Max Height to resolve the issue of submenu overflowing off screen.

    Please update that CSS to this:

    .home .x-navbar {
        position: absolute;
        width: 100%;
        top: 0;
        background-color: rgba(255, 255, 255,0.9);
        box-shadow: none;
        border-bottom: none;
    }

    Hope this helps.

    #1149755
    yhshin1020
    Participant
    This reply has been marked as private.
    #1149756
    yhshin1020
    Participant
    This reply has been marked as private.
    #1149758
    yhshin1020
    Participant

    changing the code to this:

    @media (max-width: 979px) {
     .x-navbar {
        position:relative !important;
    }
    }

    Instead of position: static; fixed the problem.

    #1149967
    Rad
    Moderator

    Glad to hear that! Thanks for sharing 😉

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