Hide left navigation using javascript in sharepoint 2010



This Style Script will hide the left navigation in SharePoint site.
1. Add Content Editor web part in SharePoint site page.
2. Add below script to content editor web part.

<style>
#s4-leftpanel {
                DISPLAY: none
}
.s4-ca {
                MARGIN-LEFT: 0px
}</style>

Comments

Popular posts from this blog

Difference Between Site Template and Site Definition

Delete multiple site collections using SharePoint Power Shell Script

Managed Metadata Configuration and Association