![]() ![]() A completely static menu displays the entire menu structure, and a user can click any part of it. Static display means that part or all of the menu structure is always visible. The Menu control uses two modes of display: static and dynamic. ![]() For a general discussion of using CSS with server controls, see ASP.NET Web Server Controls and CSS Styles. It is not recommended that you both specify inline styles and use a style sheet, because unexpected behavior could result. Note that it is a best practice to either specify inline styles in the markup or use the CssClass property and specify styles using a style sheet. The following example shows how to specify a CssClass property for a number of Menu properties that you can then reference in a style sheet. The CssClass property can be used to assign a CSS class to a menu style that controls some aspect of the Menu control's appearance. You can set attributes of the various styles directly in the markup or use a style sheet. This topic introduces the types of styles exposed by the Menu control and suggests some best practices for setting styles with the Menu control. By understanding which properties control which aspects of the rendering, you can tailor a menu's appearance. Almost every aspect of the Menu control's appearance can be managed by using the properties of the Menu control or cascading style sheets (CSS).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |