Re: unique colors for popup menus
2005/07/23 16:09
Viewed 5700 times
Replies: 1/1

Yes, this is possible by assigning a class name to UL elements that define each submenu. When you do that, the top-level DIV element that contains the menu items will be assigned that class name as well, so you could for instance say:

<ul id="menu">
<li>Item 1
<ul class="submenu1">
... submenu 1 contents
</ul>
</li>
<li>Item 2
<ul class="submenu2">
... submenu 2 contents
</ul>
</li>
</ul>

And here's an example style that needs to go in the document <head>:

<style type="text/css">
@import url("/hmenu/skin-xp.css");
div.submenu1 { background-color: red; }
div.submenu1 tr.item.hover { background-color: white; }
div.submenu2 { background-color: blue; }
/* etc. */
</style>

Please let me know if that helped.

Re[2]: unique colors for popup menus
2005/07/25 19:21
Viewed 7219 times
Replies: 0/0

Thanks! One more question along this line, can I use these classes to also change the font color on the hover. I'll just give it a show, seems to work great in non IE browsers, but IE doesn' inherit some of the rollover stuff.

Also, what platform do you use for development (Win, Unix)? When I open up your files, all the lines run together, hard to read. I'm using Linux and the Kate editor.

We just bought your product! It is great.
Brian

last
Google