Search code examples
sharepoint-2007

How do I hide the left nav bar (including space) in MOSS 2007?


I am able to remove the left nav bar with this code:

.ms-nav {width: 0px;}
.ms-navframe {display:none;}
.ms-quicklaunchouter{width:0px;}
.ms-recyclebin {display:none;}
.ms-TitleAreaFrame {display:none;}
.ms-titlearealeft {display:none;}
.ms-titlearea {display:none;}
.ms-pagetitle {display:none;}

but it adds a left space that takes up half of the page to my edit/create/view all content pages/check-in/etc. I was able to fix this with a Content Editor Web Part (CEWP), but I would like to know if there is a way to do this in a .css file to use throughout the entire site. I have over 100 pages and would rather not have to add a CEWP to each page.

Thanks For The Help.


Solution

  • How about:

    .ms-leftareacell {background-color:#D6E8FF;}
    .ms-nav {display:none;}
    

    And yes, you can create a CSS file and upload it to Style Library. Then go into Site Settings > Master Page (under Look and Feel) and have Alternate CSS URL point to your CSS file in the Style Library.