Got quick and hopefully easy question. It is...How can I add a divider line/section in QuickLaunch on SharePoint 2010? Any suggestions will be greatly appreciated!!!

3 Answers 3


The quick launch menu items are rendered by this template

     <asp:menuitemstyle CssClass="ms-navheader" />
     <asp:menuitemstyle CssClass="ms-navitem" />
     <asp:submenustyle CssClass="ms-navSubMenu1" />
     <asp:submenustyle CssClass="ms-navSubMenu2" />
     <asp:menuitemstyle CssClass="ms-selectednavheader" />
     <asp:menuitemstyle CssClass="ms-selectednav" />

See it in Sharepoint:SPNavigationManagertag of v4.master. thus I think that the easiest way is to use CSS

    border-bottom: [border-width || border-style || border-color] | inherit

Also you can modify this markup to insert your html.


As I like @Alexander's asnwer a lot, I'm curious towards what kind of sectioning you're looking for?

If it is level based, then I'd go with Alexanders, but if it's "random", like grouping them this way




then I'd suggest javascript/jquery. Depending on what you like most.

Example using jQuery:

$('document').ready(function () {
    // Hides text value of QL items containing '-----'
    // then adds class 'MyDivider' which will style the "empty" list item
    $('.s4-ql li.static .menu-item:contains("-----")').hide().parent().addClass('MyDivider');

As I said it's only an example :)
This way you can always control where the quicklaunch should divide the menuitems by going to the sites Navigation settings and adding a new link, typing in ----- as the title.

Hope this helps :)


I did this through the interface:

Site Actions > Site Settings > Look and Feel > Navigation

In the 'Navigation Editing and Sorting' section, select the 'Current Navigation' item (which is the Quick Launch bar). Click 'Add Heading', and for the title enter a series of alt-196 keycodes. This keycode will produce a series of connected horizontal lines, like underscores, but vertically centered. Nothing is needed for any of the other fields.

It will put your separator at the bottom, so just uses the 'Move Up' link to get it where you want it. Click 'OK' and check the result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.