Hello
Can I make the entire menu scrollable instead of only the subitems? https://prnt.sc/v62zyn
Like for example 9gag.com or facebook.com (desktop version)
Here is my CSS for the submenu.
@media (min-width: 769px) {
/* Fix height and set scroll on parent item */
.dropdown-click .main-navigation:not(.toggled) ul>li.menu-item-has-children {
max-height: 350px;
overflow-y: auto;
}
/* Stick parent item on scroll */
.dropdown-click .main-navigation:not(.toggled) ul>li.menu-item-has-children>a {
position: sticky;
top: 0;
position: -webkit-sticky;
z-index: 1;
}
/* Force height of submenu */
.dropdown-click .main-navigation:not(.toggled) ul>li.menu-item-has-children>ul {
max-height: 100%;
position: relative;
z-index: 0;
}
}
Thanks!