Hi
I am using bandb theme with horizontal dropdown menu.
How to do I make the width of the dropdown match the text length so there is no wrap-round.
Can I add width: = ? somewhere in the css.
What would be the correct CSS?
Thanks
Drop down menu
Re: Drop down menu
A couple of options come to mind. If you want all the dropdowns to be the same width you can override the min-width that Foundation sets to 200px, e.g:
Or you can set the text in the dropdown to not wrap, which should make each dropdown resize to its largest item:
Use the inspector to see what's being set and tweak as needed.
Code: Select all
.is-dropdown-submenu {
min-width: 400px;
}
Code: Select all
.is-dropdown-submenu {
white-space: nowrap;
}
Not getting the answer you need? CMSMS support options
Re: Drop down menu
Thanks
I have used the no-wrap feature.
Solved.
I have used the no-wrap feature.
Solved.