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;}


No comments:

Post a Comment