Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Dynamically set the width of drop down menu
posted

Hi, I need help please.

I want dynamically set the width of the drop down menu. The text keeps on overlapping to a new line. I have to set the width to like 300px but when my submenu is  only 8 chars. Is there a way to build menu width dependant on the text. 
   <ignav:UltraWebMenu id="mnu" TopAligment="Center" SubMenuImage="ig_menuTri.gif" ScrollImageTop="ig_menu_scrollup.gif"
    Cursor="Default" ScrollImageBottomDisabled="ig_menu_scrolldown_disabled.gif" ScrollImageTopDisabled="ig_menu_scrollup_disabled.gif"
    ScrollImageBottom="ig_menu_scrolldown.gif" runat="server">
    <ItemStyle CssClass="mnuItem"></ItemStyle>
    <DisabledStyle ForeColor="LightGray" ></DisabledStyle>
    <HoverItemStyle Cursor="Default" CssClass="mnuItemHover"></HoverItemStyle>
    <IslandStyle Cursor="Default" Font-Size="8pt" Font-Names="MS Sans Serif" ForeColor="Transparent" BackColor="Transparent"></IslandStyle>
    <ExpandEffects ShadowColor="LightGray"></ExpandEffects>
                                <SeparatorStyle BackgroundImage="ig_menuSep.gif" CssClass="SeparatorClass" CustomRules="background-repeat:repeat-x; "></SeparatorStyle>
                         <Levels>
     <ignav:Level Index="0" LevelCheckBoxes="False"></ignav:Level>
     <ignav:Level Index="1" LevelCheckBoxes="False"></ignav:Level>
    </Levels>
    <Items>
     <ignav:Item TargetUrl="Home.aspx" IslandClass="" TagString="" HoverImageUrl="" ImageUrl=""
      Text=" Home " HiliteClass="" TargetFrame="" CssClass="mnuHome" HoverClass="mnuHomeHover"></ignav:Item>

 Please Assist!