
Nov 12, 2015
Change the width of the top link bar navigation drop-down in SharePoint.
When you have a sub-site under another sub-site, the top link bar will show you a small arrow to navigate to that site. By clicking on the arrow you get a drop down that lists all the sub-sites underneath the site. Sometimes though the title of a site is too big to fit in the dropdown as shown in the picture;
Here the sub-site Information Technology is wrapped in the drop-down box under Technical.
You can fix this by modifying the underlying Cascaded Style Sheet shown below. If you are using a customised style sheet you need to open it and make these changes, otherwise in SharePoint 2013 you need to modify Corev15.css file. You can either open Corev15.css by typing the following URL in a browser:
http:///_layouts/15/1033/styles/Themable/corev15.css
When prompted to Save or Open, select Open. The file will open in SharePoint Designer if you have it installed.
Or if you have access to the file system on the server then you can get Corev15.css via Windows Explorer. It is normally located here:
C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions15TEMPLATELAYOUTS1033STYLESThemableCorev15.css
However the best way is to get to C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions first and then search for Corev15 from this folder.
Once you have Corev15.cssopened all you have to do is find the entry ul.dynamic which is normally as shown in the picture:
Then, change the line.
white-space:normal;
to
white-space:nowrap;
That’s all you need. Save the file and refresh your browser. You should now see this.
Hope this has helped.
For more information, take a look at New Horizons' SharePoint training courses.
Cyrus Mohseni
How do your Excel skills stack up?
Test NowNext up:
- From Rivals to Friends … The rise of a new behemoth – The Red Microsoft Hat.
- The Quick Brown Fox…
- AngularJS Service – The Basics
- Why effective leadership is like yogurt
- The best features of Excel 2013 – Part 1
- What is ITIL?
- Ever typed a date into Excel and it turned into a number?
- Using a Calendar on your Website
- Custom Data Validation Rules in Excel
- Using the Fluent API with Entity Framework
Previously
- From Rivals to Friends … The rise of a new behemoth – The Red Microsoft Hat.
- Is your ‘Human Capital’ stock going up or down?
- I wasn't meant to send that!
- Drag and Drop
- Decorate Your Office
- What’s new in Skype for Business
- The Power of the Paragraph
- Microsoft Word: Make an Exclusion Dictionary
- Creating a simple Website and User Interface with MVC (Part 3)
- Power Map in Excel 2013