Friday, June 1, 2012

Hide Left-hand Navigation in SharePoint 2010 Page Layout

In SharePoint Home page we don't need Left hand navigation, to hide that left hand navigation there is lots of way.

I found a simple way, just open your page layout in SharePoint designer and add following code.

<asp:Content ID="PageHead" ContentPlaceholderID="PlaceHolderAdditionalPageHead" runat="server">
<style type="text/css">
#s4-leftpanel
{
display:none;
}
.s4-ca
        {
         margin-left: 0px;
         background: transparent;
         }
</style>
</asp:Content>

It will hide Left hand Navigation from your Page layout.

1 comment: