1 /* --------------------------------------------------------------------------
3 (c) 2005 U.S. Robotics Corporation.
5 -------------------------------------------------------------------------- */
7 /* ------------------------------------------------------------------------
9 Vertical dropdown menus:
10 http://www.htmldog.com/articles/suckerfish/dropdowns/
14 http://www.alistapart.com/articles/horizdropdowns/
16 http://www.alistapart.com/articles/dropdowns/
17 http://www.htmldog.com/articles/suckerfish/example/
19 Fix for bug where IE always displays <select>s as top layer:
20 http://tanny.ica.com/ica/tko/tkoblog.nsf/dx/Select-tag-overlap-in-IE?opendocument&comments
21 http://www.milonic.com/menusample24.php
22 http://69.236.149.4/test/fixed/default.asp
23 (slow) http://www.yxscripts.com/menuG5/
24 (x) http://www.aplus.co.yu/adxmenu/four-variants-of-drop-down-menu/
26 ------------------------------------------------------------------------ */
32 These classes provide the barebones mechanisms for hiding the first-level
33 submenus and displaying them when the cursor hovers over the menu bar.
34 This code requires any tags following the menu bar to be enclosed in
35 a DIV with the id of "idContent."
40 clear: left; /* required because we're floating menus */
44 get rid of list decorations
46 UL#idMenu, UL#idMenu UL
54 put top-level items next to each other in a bar
62 "Lock" width of menu elements (menu bar: LABEL, menu item: A)
64 LI's width is required for Opera.
65 LI UL's width is required for Firefox.
66 (But it's set below so we delete "UL#idMenu LI UL" from here.)
67 This seems unnecessary for UL#idMenu LABEL and UL#idMenu A--at least on IE.
68 (But it's set below so we delete "UL#idMenu A" from here.)
70 UL#idMenu LI, UL#idMenu LABEL
72 width: 7em; /* this is overridden in the MenuBar ctor */
76 UL#idMenu LABEL, UL#idMenu A
82 hide submenu items (second-level lists)
87 left: -999em; /* don't use display:none because it breaks screen readers */
90 Display dropdown menu when menu bar item is hovered over.
91 (Include class used by IE workaround.)
93 UL#idMenu LI:hover UL, UL#idMenu LI.clsIEhover UL
101 P R E T T Y F O R M A T T I N G
103 These classes provide the formatting for 3D menus.
108 Override width of the dropdown menu and its contents so
109 that the menu's wide enough for the widest (bold) item.
111 "UL#idMenu LI UL" and "UL#idMenu A" are required for the
113 UL#idMenu LI UL, UL#idMenu LI UL LI, UL#idMenu LI UL LI A
115 width: 10em; /* this is overridden in the MenuDropdown ctor */
119 menu bar items and menu dropdown items
121 3D effect for menu bar and dropdown items
123 UL#idMenu LI LABEL, UL#idMenu LI UL LI A
126 border-top: 1px solid #F0F0F0;
127 border-left: 1px solid #F0F0F0;
128 border-right: 1px solid #A0A0A0;
129 border-bottom: 1px solid #A0A0A0;
141 background-color: #E0E0E0;
150 text-decoration: none;
152 background-color: #D0D0D0;
154 UL#idMenu LI UL LI A:hover
156 border: 1px solid #646464;
158 background-color: #646464;