Forum Discussion
Jan 10, 2018
Navigation dropdown width in SP Online
Hello,
what can be done in SharePoint online to fix the width of the top level navigation dropdown? It is all messed up in the Home page and the Site Pages, but in a modern page, like a document li...
Maikel Schummelketel
Jan 11, 2018Copper Contributor
You can add this to your CSS file.
I used the following code from: https://blog.sharepointexperience.com/2014/10/increase-width-sharepoint-drop-down-navigation/
/* Resize navigation fly-out width */
ul.dynamic {
width: auto !important; /* !important needed to override inline SharePoint style */
white-space: nowrap;
}
ul.dynamic li {
border-top: 1px solid #ddd;
padding: 10px 0;
}
ul.dynamic li:first-child {
border-top: 0;
}