[Resolved] enable scrollbar when submenu height is bigger than the screen size

Home Forums Support enable scrollbar when submenu height is bigger than the screen size

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1038651
    eduard sans

    Hi there, I would like to know how to enable a scrollbar when the submenu’s height is bigger than the screen size. I’ve tried by adding a “overflow: scroll;” to the style sheet but it just seems to show the space for it without any functionality. Any tips?

    If you want to see an example check on the navigation menu Destinations > Asia > this submenu can grow bigger than certain laptop sizes.

    Thanks in advance!

    #1038808
    David
    Staff
    Customer Support

    Hi there,

    could try something like this:

    .main-navigation ul ul .sub-menu {
        max-height: calc(100vh - 176px);
        overflow-y: scroll !important;
    }

    This limits the height of the sub menu to 100% of the viewport height minus the height of your header.

    #1039015
    eduard sans

    Perfect! thanks !

    #1039017
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.