Skip to main content

SharePoint 2010: Navigation Drop Down Styles

If you would like to stylize your navigation drop downs in SharePoint 2010 here are the 4 main key classes to update your CSS.

If you are looking for SharePoint 2007 styles see my previous blog post here.

The OOTB Navigation Drop Down CSS: “COREV4.CSS”
.s4-tn ul.dynamic{
/* [ReplaceColor(themeColor:"Light2")] */ background-color:white;
/* [ReplaceColor(themeColor:"Dark2-Lighter")] */ border:1px solid #D9D9D9;
.s4-tn li.dynamic > .menu-item{
padding:3px 10px;
/* [ReplaceColor(themeColor:"Hyperlink")] */ color:#0072BC;
.s4-tn li.dynamic > a:hover{
/* [ReplaceColor(themeColor:"Light2-Lighter")] */ background-color:#D9D9D9;


Example (Not good design, but you get the point)

/* Drop Down: Container Style */
.s4-tn ul.dynamic{
border:3px dashed #000;
/* Drop Down: Item Padding Style */
.s4-tn li.dynamic > .menu-item{
padding:10px 20px 10px 20px;
/* Drop Down: Hyperlink Styles */
.s4-tn li.dynamic > a{
font-size: 9pt;
/* Drop Down: Hyperlink Hover Style */
.s4-tn li.dynamic > a:hover{

What it will look like:

Simply take the above 4 main CSS classes and add/edit/delete the properties to make your drop down style truly unique.


Anonymous said…
This is great! My problem is that there's a bad lag when the user moves off an item that has a flyout. I have a Top bar, 1st flyout, 2nd flyout design. When changing items in 1st the last item's flyout is still visible when the new item's flyout comes up. I can't find any answer.

Any ideas?
Aaron said…
I’m looking after a SharePoint Foundation server, am I able to implement drop down menus or is it only with 2010 server?
Jamye Few said…
Great post. I am sure this only applicable on Server and not Foundation. Is there any other option to get drop down functionality in the menu on Foundation other than a custom solution applied to a obviously customized masterpage?
Anonymous said…
great post
but my problem is how to create nested menus i want to create 3 level menus but i dont know how
i do some search and the articale said to change the "MaximumDynamicDisplayLevels" in master page into 2 but its not work.
any help plz.
Anonymous said…
Thanks for the post. Is it possible to make the menu fly out in a vertical orientation vs. horizontal?
Edy said…
thanks. but how to add sub menus? I don't see any dropdown menu in toplink bar?
Bijay Kumar said…
Thanks for the post, but why it is not working for publishing web site??
Bijay Kumar said…
I have tried in publishing pages, it didnot work. Please suggest me
Duru said…
There is a lag between levels, how can I fix it?

Anonymous said…
How would I add links to the drop down menu's
ferif said…
How about to implement the mega menu as has ?
That's excellent mega menu implementation.

Popular posts from this blog

How To: Hide Left Side Navigation on Home Page

I was recently asked: "How can I hide the side nav bar on the main homepage layout ?? I want to be able to use the side NAV with in the team site etc etc, but I don't want it on the front page.. " There are a couple of ways to do this in SharePoint 2010. If you are using a non-publishing site you can add a Content Editor Web Part to the page and add the following to the HTML Source.
body #s4-leftpanel
display: none;
margin-left: 0px;
Basically the CSS above hides the left navigation Div, and then sets the content area to not have a left margin. Once you are done, simply modify the web part and hide it on the page. If you are using a publishing site for your homepage simply add the same styles specified above to a custom page layout. That way if you have a need for other pages that do not need the left side navigation you can re-use the page layout.

SharePoint 2010 Base CSS Classes

This will be the first of many SharePoint 2010 posts. I will be focusing on a few of the main CSS classes used for SharePoint 2010 Public Beta. As the product becomes more final there might be some changes to the class names but I will be sure to create a new post if that happens. This will be quite a lengthy but it should be helpful. The default CSS given below are just highlights of the full CSS attributes for that class.I will be using a basic team site as my base for the screenshots. Here is a basic structure of the main areas that I will cover.Ribbon RowTable Row Left Site Actions Navigate Up Edit Tab List Browse Page Table Row Right Give Feedback Welcome Menu WorkspaceBody Container Title Row Title Title Logo Title Text / BreadcrumbPage DescriptionSocial Data SeparatorI like It Tags/Notes Top Header 2/Top Links li Static-Selected li Static SearchHelpStatus Bar Container Main A…

Small Calendar for SharePoint 2010 & 2013

First off I would like to apologize for the lack of posts. I have been really busy with my new role as the UX Design lead within Slalom Consulting Boston. I will share more about that in another post. In a previous post Create Really Small Calendar I showcased how to do this for SharePoint 2007. However the 2010 and 2013 calendar views have changed and therefore we cannot use the same method or CSS as 2007.SharePoint 2010 Small Calendar:
SharePoint 2013 Small Calendar:
See video below for a video walk through on how to create a small calendar for SharePoint 2010 and & SharePoint 2013 with just CSS.Per the video above here is the code that I referenced:2010 CSS link reference in Master Page:
<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/smallcalendar.css %>" After="corev4.css" runat="server"/>2010 CSS:
/**** Small Calendar ***/
.ms-acal-item{height: 10px !important;}