Hide SharePoint Left Navigation Menu using CSS

Posted: March 6, 2013 in Content editor web part, CSS

Just add this style in a content editor web part in the page you want to hide your left navigation. In case you need to hide it in all the pages, add this to your master page.

<style type=”text/css”>
body #s4-leftpanel { display: none; }
.s4-ca { margin-left: 0px; }
</style>

The style applied to body #s4-leftpanel hides the left navigation & the style applied to .s4-ca removes the empty space & moves the other content of the page towards the left side.

 

About these ads
Comments
  1. Jamie says:

    This works great! How can I modify it to display custom navigation? For example, within each document library page, I only want to link to specific locations but modifying the navigation changes the settings for all document library pages.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s