issues when changing element witdh in master page
Hello everyone,
I am editing the following master page which my current SharePoint site is using (I am using SharePoint 2007 + Windows Server 2008),
http://www.mediafire.com/file/mmvj5ijgm3j/BlueBand.master
Currently, I am using the hard-coded value "120" to set the width of the left navigation bar, here is the related code in the master file, my question is, how to set the width of left navigation bar to be automatically changed according to the max length of items on left navigration bar?
<SharePoint:AspMenu ID="CurrentNav" width="120" runat="server" datasourceID="SiteMapDS" orientation="Vertical" StaticDisplayLevels="2" MaximumDynamicDisplayLevels="0" StaticSubMenuIndent="1" ItemWrap="true" AccessKey="3" CssClass="leftNav" SkipLinkText="<%$Resources:cms,masterpages_skiplinktext%>">
thanks in advance,
George
Answers
- George,Please use IE Dev tool bar to fix these kind of issues which will be more helpful for you.With IE dev tool bar you can change the css properties in the browser itself and you can analyse how your site design behaves for different css properties and you can come to conclusion what changes should be done to the css.To download IE dev toolbar use this link http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=enHope it helps !
- Gopi Ramaya- Marked As Answer byGuYumingMSFT, ModeratorThursday, November 19, 2009 8:03 AM
All Replies
- George,Specify you own css class to the CssClass property in the control and specify width:auto.
- Gopi Ramaya - Thanks Gopi! For your idea "you own css class to the CssClass property in the control and specify width:auto." -- any ideas or more detailed samples? I did not played with css on WSS before.
- George,Please use IE Dev tool bar to fix these kind of issues which will be more helpful for you.With IE dev tool bar you can change the css properties in the browser itself and you can analyse how your site design behaves for different css properties and you can come to conclusion what changes should be done to the css.To download IE dev toolbar use this link http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=enHope it helps !
- Gopi Ramaya- Marked As Answer byGuYumingMSFT, ModeratorThursday, November 19, 2009 8:03 AM
You may change the ItemWrap attribute to false in your <SharePoint:AspMenu#> tag.


