This topic has 12 replies, 3 voices, and was last updated 7 years, 9 months ago ago by Rose Tyler
Can you please let me know the css code for reducing the font size and the vertical height of each entry in the Secondary menu. I want to reduce vertical of the menu. Thanks.
Hello,
.secondary-menu-wrapper .menu li > a {
font-size:12px;
padding-top:5px;
padding-bottom:5px;
}
Regards
Thanks. That works great in reducing font size and padding above/below menu title, but how about reducing the vertical height of each Title box itself?
Hello,
Also use this code:
.global-header-center.et-secondary-menu-on .secondary-menu-wrapper .menu > li > a {
padding-top: 10px;
padding-bottom: 10px;
}
Regards
Unfortunately neither of the 2 css code snippets you provided had any affect in reducing the vertical height of the Secondary Menu Title rows. The font size adjustment worked great.
That did it!!
Can you also give me the css code for doing the same thing on the mobile menu? Changing font size and reducing vertical height of the menu title box.
Hello,
.mobile-menu-wrapper .menu > li > a {
line-height: 45px !important;
font-size: 12px;
}
.mobile-menu-wrapper .menu > li .open-child:before {
line-height: 45px;
}
.mobile-menu-wrapper .links li a {
line-height: 45px !important;
}
.mobile-menu-wrapper .mobile-sidebar-widget {
padding-top: 15px;
padding-bottom: 15px;
}
Regards
Thanks. This css code works great in adjusting the main mobile menu BUT if there it does not change anything on the 2nd level menu which remains the original font size and vertical height for each row. Looks like there is some additional coding. Thanks.
Hello,
Change previous code to:
.mobile-menu-wrapper .menu > li > a, .mobile-menu-wrapper .menu > li .sub-menu li a {
line-height: 45px !important;
font-size: 12px;
}
.mobile-menu-wrapper .menu > li .open-child:before, .mobile-menu-wrapper .menu > li .sub-menu .menu-back:before {
line-height: 45px;
}
.mobile-menu-wrapper .links li a {
line-height: 45px !important;
}
.mobile-menu-wrapper .mobile-sidebar-widget {
padding-top: 15px;
padding-bottom: 15px;
}
Regards
Thanks! Your new css changes font size/row height just fine on the mobile menu as requested. Appreciate the help.
Hello,
You’re welcome!
Regards
The issue related to '‘Secondary Menu – Font Size / Row Height’' has been successfully resolved, and the topic is now closed for further responses