HIde left navigation and top riboon by using CSS Code for sharepoint 2010

Hi Friends,
                     As many time i face the issues that need to hide the top pannel in sharepoint page.

Finally after some googleing and my css terms i got these functionality .
please follow the below steps to add the code


  1. add content editor page in the page
  2. Add the below code in editor and make the layout hidden . it will hide the top bar.

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


Thanks and Regards
Amit

Comments

Popular posts from this blog

React and SPFx Interview Questions with Scenarios and Code Examples

Automating ShareGate PreCheck Reports: From Manual Drudgery to Streamlined Efficiency

How to Automate SharePoint Site Creation with Site Scripts & Site Designs (2025)