Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: How to modify the aspnet menu style in V9

  1. #1
    metals1 is offline Junior Member
    Join Date
    Feb 2010
    Posts
    17

    Default How to modify the aspnet menu style in V9

    I tried to change font size, background etc under aspmenu in the style.css file but the pages did not change. Could someone help.

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    You just have to modify the styles listed in the menu control declaration:

    Code:
    <asp:Menu ID="aspnetMenu" runat="server" Orientation="Horizontal" StaticTopSeparatorImageUrl="images/tab-sep.gif"
                    StaticEnableDefaultPopOutImage="False" StaticDisplayLevels="2" MaximumDynamicDisplayLevels="<%$ Tokens:AppConfigUSInt, MaxMenuLevel %>" >
                    <StaticSelectedStyle CssClass="aspnetMenu_StaticSelectedStyle" />
                    <LevelMenuItemStyles>
                        <asp:MenuItemStyle CssClass="aspnetMenu_Level1" Font-Underline="False" />
                        <asp:MenuItemStyle CssClass="aspnetMenu_Level2" Font-Underline="False" />
                    </LevelMenuItemStyles>
                    <StaticMenuItemStyle CssClass="aspnetMenu_StaticMenuItemStyle" />
                    <DynamicSelectedStyle CssClass="aspnetMenu_DynamicSelectedStyle" />
                    <DynamicMenuItemStyle CssClass="aspnetMenu_DynamicMenuItemStyle" />
                    <DynamicMenuStyle CssClass="aspnetMenu_DynamicMenuStyle" />

  3. #3
    metals1 is offline Junior Member
    Join Date
    Feb 2010
    Posts
    17

    Default which css file to modify?

    Thanks for the response. I have been modifying the style.css file in the /app_theme/skin_x/ folder. X is my default skin id. Is this the right place to change the style.

  4. #4
    metals1 is offline Junior Member
    Join Date
    Feb 2010
    Posts
    17

    Default

    I tried to change .aspnetMenu_Level1, .aspnetMenu_Level2 in the style.css file but nothing changed. Did I miss anything. Can someone help.

  5. #5
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM