When you say "Create CSS that works with the adapter" can you please
elaborate for me (I'm a bit new to CSS)?
My original style sheet ("App_Themes\Down Gradient Silver
Verdana\StyleSheet.css") is shown below but none of the menu control
settings make any difference to the menu control after I got the
friendly adaptors. In fact before I installed them I removed the whole
section entitled "/*-- ASP Menu --*/" to try annd sequentially debug
the menu. In that case the menu displayed the same even though I
deleted that whole section -- maybe it was only using table styles as
listed there?
Anyway right now I am trying to do something to affect the menu bar
but so far I haven't been able to influence it at all. I have
right-clicked it in the the MasterPage and added a grey (#CCCCCC)
backcolor on in each of the GUI properties in VWD Express 2008. E.g.
The backcolor property for "DynamicMenuItemStyle",
"DynamicMenuItemStyle", "StaticMenuItemStyle" etc. Nothing has changed
- still just plain text with no spacing at all.
SNIPPED OUT STYLE SHEET FOR BREVITY
When you add a menu control, you can set quite a few different
properties. When they are grouped, the lowest section allows you to add
classes to different elements in the menu. This grouping is named
Styles.
NOTE: If you have the Properties in alphabetical mode, you can click on
the left most icon and go to grouped mode.
The styles you can set are
Dynamic Hover
Dynamic Menu Item
Dynamic Menu
Dynamic Selected
Static Hover
Static Menu Item
Static Menu
Static Selected
and various level menu items.
You will have to play with the items to get the exact look you want, as
I don't have time to write a novel.
But, the general gist is the static menu is the item that is always
there (top level menu) and the dynamic menu is the drop down portion
under the static menu.
Hover is initiated when you mouse over. Selected is the item that the
user is currently looking at. Menu applies to the entire static or
dynamic menu and menu item applies to the actual item (link). You end up
playing with both of these to make elaborate menus.
The next step, if you want better CSS implementation, is the CSS
Friendly adapters, which I, once again, forgot to blog about, so Mark
will likely ding me again on this one. ;-)
I will have a blog entry soon on CSS and the ASP.NET menu, perhaps two
if I also create one on applying CSS to the normal ASP.NET menu control
without CSS Friendly adapters.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************