-
janagerm
There is so much space between my subnav items that they don’t all show up on mobile. How can I lessen the space between menu items?
Thanks, JanaHere is what I have for css:
/*3rd level menu indent*/
.dropdown-click .main-navigation ul ul ul.toggled-on, .dropdown-click .main-navigation ul ul li.sfHover > ul.toggled-on {
padding-left: 10px;
}
/*3rd level menu typography*/
.dropdown-click .main-navigation ul ul ul.toggled-on > li >a, .dropdown-click .main-navigation ul ul li.sfHover > ul.toggled-on >li >a {
font-size:16px;
line-height: 10px;
}
@media (max-width: 768px) {
.mobile-header-navigation .site-logo.mobile-header-logo img {
height: 108px;
}
.menu-toggle, .main-navigation .mobile-bar-items a {
line-height: 108px;
}
}
@media (max-width: 768px) {
.navigation-branding img, .site-logo.mobile-header-logo {
height: 108px;
}
}
@media (min-width:769px) {
.main-navigation .main-nav ul li.nav-button a {
background-color: #fe7c40;
border: 1px solid #5e5339;
color: #5e5339;
line-height: 35px; /*this number will likely need to be adjusted*/
}
}
.navigation-search {
top: 100%;
max-width: 600px;
margin: auto;
}
.main-navigation .main-nav ul ul li a {
padding-left: 20px;
}
.main-navigation .main-nav ul ul ul li a {
padding-left: 35px;
}
.main-navigation .main-nav ul ul li:not(:last-child) a {
border-bottom: .5px solid #fff;
}
.main-navigation.toggled .main-nav ul li a {
line-height: 40px;
} -
Alvind
Hi there,
Can you link me to the site so I can inspect the issue directly?
-
janagerm
Hi Alvind – the site is https://centerforahumaneeconomy.org
-
Hi there,
For menu that contains so many sub menu items, it’s recommended to use the off canvas panel, can you give that a try?
The setting is at customizer > layout > off cavas panel.
-
janagerm
Hi, I don’t would prefer not us have an off-canvas menu. Isn’t there some css code that can tighten up the spacing between the pulldown items on mobile?
-
The setting is at customizer > layout > primary navigation >Menu Item Height (mobile).
However, it’s not scrollable if the navigation height exceeds the screen height.
-
janagerm
Thank you, Ying, that worked perfectly. Why didn’t I think of that??
-
You are welcome 🙂
- You must be logged in to reply to this topic.