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

Sending email using Powershell script

Convert List Collection to DataTable using C#

Difference Between Site Template and Site Definition