bschave2
asked on
How do I set menu control css styles from code behind?
I would like to set the css styles for my menu control in the code behind. I tried...
Menu1.Orientation = Orientation.Horizontal;
Menu1.CssClass = "menu";
Menu1.StaticMenuStyle.CssC lass = "static-menu-style";
Menu1.StaticHoverStyle.Css Class = "static-menu-style";
Menu1.DynamicMenuStyle.Css Class = "dynamic-menu-style";
but it doesn't work. is there something I am missing? Any help would be much appreciated.
Menu1.Orientation = Orientation.Horizontal;
Menu1.CssClass = "menu";
Menu1.StaticMenuStyle.CssC
Menu1.StaticHoverStyle.Css
Menu1.DynamicMenuStyle.Css
but it doesn't work. is there something I am missing? Any help would be much appreciated.
Have you looked at the HTML that is being output by the menu? Is it a case that it is not adding class attributes for the CSS, or that the styles are not being correctly applied?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.