Sdílet prostřednictvím


Hide Quick Launch

Every 6 months or so when a customer requests this I always end up forgetting the name of the property and to wrap  <style> tags  around it so I'm posting this one to the blog.To hide the quick launch navigation on the left side of a page in SharePoint 2010 you can edit the HTML of the page and add the following:

<style type="text/css">

#s4-leftpanel {
 DISPLAY: none
}
.s4-ca {
 MARGIN-LEFT: 0px
}

</style>

 

NOTE: I do not recommend doing this if it can be avoided as this does not remove the quick launch column, it only hides it, so alignment of content on the page is still based on the column being there which can make things look strange for centered content. The preferred solution is creating a page based on the blank page layout that does not have quick launch navigation. However, in the real world customers do not always have the time or interest in moving existing content to a new page just to remove this column... hence this workaround.