Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

The PlaceHolderLeftNavBar that I am referring to is as follows:

<asp:Content runat="server" ContentPlaceHolderID="PlaceHolderLeftNavBar">

I wish to change the width without editing the master page. Is it possible?

Thank you.

share|improve this question

2 Answers 2

You can simply add a Content Editor WebPart or Simple Form WebPart (either one will work) to the page, open the WebPart properties, mark the WebPart as hidden and add the below CSS code to the HTML source view:

<style type="text/css">
.ms-quicklaunchouter
{
    width: 200px;
}
</style>
share|improve this answer
    
I tested but seems like the PlaceHolderLeftNavBar width had not change at all. Am I missing something? –  Jack Apr 24 '12 at 7:05
    
I also tried changing your .ms-quicklaunchouter to PlaceHolderLeftNavBar and also to #PlaceHolderLeftNavBar but it fail to increase the width of PlaceHolderLeftNavBar –  Jack Apr 24 '12 at 7:09
    
PlaceHolderLeftNavBar is an ASP.NET/SharePoint placeholder which cannot be manipulated with CSS, hence I proposed to use the CSS class ms-quicklaunchouter which is rendered by this placeholder in SharePoint 2007. –  Sig Weber Apr 24 '12 at 8:41
    
yes, I did tried your .ms-quicklaunchouter but seem that it just could not work. Am I missing something? –  Jack Apr 25 '12 at 0:49
    
Are you really using SharePoint 2007? Please update your question with more code of your current masterpage. –  Sig Weber Apr 25 '12 at 5:53

It depends what the scope of your change is.

If you only need to widen it on one (or a few) pages you can apply custom CSS to the page through the Look and Feel section of the site settings.

http://whitepages.unlimitedviz.com/2010/05/using-themes-and-css-with-sharepoint-2010/

(Scroll down until after the themes)

If you want it wider on all pages, that's a master page thing.

The CSS class of the Left Navbar after it renders is #s4-leftpanel. Most of the base classes are listed on Erik Swenson's blog here:

http://erikswenson.blogspot.com/2010/01/sharepoint-2010-base-css-classes.html

share|improve this answer
    
The first link that you provided require the use of the master page thing. I need a simple solution that only widen one (or a few) pages only probably using CSS or others. –  Jack Apr 24 '12 at 1:59
    
Yep, you're right, I copied the wrong link over after I Googled your question for you. Let me edit to a correct one. –  RJ Cuthbertson Apr 24 '12 at 3:07
    
It's for 2010, but the Look and Feel setting is the same in 2007. I've done this in 2010 master pages no problem, never done it through an override. –  RJ Cuthbertson Apr 24 '12 at 3:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.