This topic has 8 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Max Mullins
Hi,
Is there a way to control width of the columns for mega menu and remove the divider line that’s visible?
Thanks!
Hello @scorleo,
Please add following code into the custom.css:
#menu-main-menu-1 .nav-sublist-dropdown ul li {
width: 11rem;
padding: 0 0 0 0;}
#menu-main-menu-1 .nav-sublist-dropdown ul li {
width: 11rem;padding: 0 0 0 0;}
#menu-main-menu-1 ul .menu-parent-item {
border-left:1px solid red;}
.item-design-mega-menu .nav-sublist-dropdown .item-link, .item-design-mega-menu .nav-sublist-dropdown
.nav-sublist a{
width:11rem;}
Regards,
Max Mulins
Thanks Max!
Editing my response because I noticed something:
Width is adjusted now but across all the menus and not just the mega menus, this results in other menus that have long names to wrap around.
I want to see no divider instead of red line divider.
Also, because the column widths are smaller, the overall table is significantly larger and you can see significant gap between the 5th column and table border on the right. I’m guessing overall width will also need to be adjusted?
Please check this code instead of previous:
#menu-main-menu-1 #menu-item-463 .nav-sublist-dropdown ul li {
width: 11rem;
padding: 0 0 0 0;}
#menu-main-menu-1 #menu-item-463 .nav-sublist-dropdown ul li {
width: 11rem;padding: 0 0 0 0;}
#menu-main-menu-1 ul .menu-parent-item {
border:0px ;}
.et-header-full-width .navigation-wrapper .container, .item-design-mega-menu.columns-5 .nav-sublist-dropdown {
width:auto!important;}
Regards
Max Mullins
Thanks Max!
Last line something is amiss, it’s resulting in single column menu –> http://prntscr.com/fe0lwv
Thank you!
Hello, @scorleo
Lines are corected and tested. In addition i have added hover color for top menu of 5-th column css trigger.
#menu-main-menu-1 #menu-item-463 .nav-sublist-dropdown ul li {
width: 11rem;
padding: 0 0 0 0;}
#menu-main-menu-1 #menu-item-463 .nav-sublist-dropdown ul li {
width: 11rem;padding: 0 0 0 0;}
#menu-main-menu-1 ul .menu-parent-item {
border:0px ;}
.et-header-full-width .navigation-wrapper .container, .item-design-mega-menu.columns-5 .nav-sublist-dropdown {
width: 50rem;}
#menu-main-menu-1 .item-design-mega-menu .nav-sublist-dropdown .item-level-1:hover a{ color:red}
Regards,
Max Mullins
Perfect. All good now. I just had to adjust overall width from 50 to 57 because last column was wrapping around the table.
Thanks Max!
Hello @scorleo
You are always welcome!Be free to write in case any further questions appears.
Regards,
Max Mullins
You must be logged in to reply to this topic.Log in/Sign up