Showing posts with label Branding. Show all posts
Showing posts with label Branding. Show all posts

9/26/11

Sharepoint 2010 - Hide the Quick Launch Navigation on a page

One possible way to hide the Quick Launch panel on a page is to modify the page layout for example of the default.aspx page.


<style type="text/css">
#LeftNavigationAreaCell { displaynone !important; }
</style>

Another method for hiding the Quick Launch is to add a Content Editor Web Part to the page and add the following code to the webpart.

<style type="text/css">

/*--Hide Quick Launch Panel--*/
#s4-leftpanel{
display:none

}
.s4-ca{
margin-left:0px
}

</style>

The last method is to add the code to the Masterpage for the site (just before the closing head tag) and this will eliminate any extra space in the top left area. 

hide_the_quick_launch_in_sharepoint_2010_solutions

8/15/11

Hide Sharepoint controls using a custom masterpage

I was asked to make a site display only the content, hide the header, quick launch bar, site actions button, etc. I started with a minimal masterpage on Codeplex - http://startermasterpages.codeplex.com/

I then added the following css to hide the Sharepoint controls


<style type="text/css">

    #s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, 
.s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg 
s4-titlerowhidetitle, #s4-leftpanel-content {display:none !important;}
   .s4-ca{margin-left:0px !important; margin-right:0px !important;}

</style>