I have two CSS styles that look like
Code: Select all
<STYLE>
.myCSSstyle1{ /* red border, light red background */
border: 3px red solid;
background: #ffeaf2;
}
.myCSSstyle2{ /*blue border, light blue background */
border: 3px blue solid;
background: #eaf2ff;
}
</STYLE>
Setting my on/off background colors in the MENU STYLE to a color overrides the onClass and offClass background, but the borders stay. This makes sense since the border makes it through, and the color gets added. But is the menu style property supposed to override menuitem on and off class definitions? I would think since you are defining them in the menu item they should take precedence over any global definitions. If I defined on and off class in the item, I would expect the rest of the menu to behave as the menu style says, but this one item would have different background colors since I put in the classes for it to use, right?
Also, if I specify the above classes and then set the onborder attribute of the MENU STYLE, when the menu loads the menu items have the style of the offclass style as expected. When I mouseover the item, I don't get the border of the onclass CSS style, I get the border of the onborder MENU STYLE, and I guess this is ok, you have to pick one to use, right? But when I mouse out of the item, I don't get the offclass style anymore, it seems to get wiped. Any of this by design?