/* common styling */ /* set up the overall width of the menu div, the font and the margins with a relative position*/
.menu { font-family: verdana, arial, sans-serif; width:750px; margin:0; position:relative; } /* remove the bullets and set the margin and padding to zero for the unordered list */ .menu ul { padding:0; margin:0; list-style-type: none; border:0; } /* float the list so that the items are in a line */ .menu ul li { float:left; } /* style the links to be 249px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */ .menu ul li a, .menu ul li a:visited { display:block; text-align:center; text-decoration:none; width:249px; height:30px; color:#000; border:1px solid #fff; border-width:1px 1px 0 0; background:#c9c9a7; line-height:30px; font-size:11px; } /* make the dropdown ul invisible */ .menu ul li ul { display: none; }
/* specific to non IE browsers */ /* set the background and foreground color of the main menu li on hover */ .menu ul li:hover a { color:#fff; background:#b3ab79; } /* make the sub menu ul visible and position it beneath the first list item */ .menu ul li:hover ul { text-align:left; display:block; position:absolute; top:30px; left:0; text-align:left; } /* make the sub menu ul li the full width with padding and border. Add an auto scroll bar */ .menu ul li:hover ul li { background:#eee; color:#000; padding:10px; width:689px; height:180px; overflow:auto; border:20px solid #b3ab79; } /*float the image left with padding and no border */ .menu ul li:hover ul li img { float:left; padding:10px 10px 10px 0; border:0; } /* style the paragraph font height */ .menu ul li:hover ul li p { font-size:0.9em; } /* style the background and foreground color of the submenu links */ .menu ul li:hover ul li a { display:inline; background:#eee; color:#c00; text-decoration:underline; border:0; } /* style the background and forground colors of the links on hover */ .menu ul li:hover ul li a:hover { text-decoration:none; color:#000; }
/* styling specific to Internet Explorer IE5.5 and IE6. Yet to see if IE7 handles li:hover */
/* Get rid of any default table style */ table { border-collapse:collapse; margin:0; padding:0; } /* ignore the link used by 'other browsers' */ .menu ul li a.hide, .menu ul li a:visited.hide { display:none; } /* set the background and foreground color of the main menu link on hover */ .menu ul li a:hover { color:#fff; background:#b3ab79; } /* make the sub menu ul visible and position it beneath the first list item */ .menu ul li a:hover ul { text-align:left; display:block; position:absolute; top:31px; left:0; }
/* make the sub menu ul li the full width with padding and border. Add an auto scroll bar */ .menu ul li a:hover ul li { background:#eee; color:#000; padding:10px; width:746px; height:240px; overflow:auto; border:20px solid #b3ab79; w\idth:689px; he\ight:180px; } /*float the image left with padding and no border */ .menu ul li a:hover li img { float:left; padding:10px 10px 10px 0; border:0; } /* style the paragraph font height */ .menu ul li a:hover p { font-size:0.7em; f\ont-size:1em; } /* style the background and foreground color of the submenu links */ .menu ul li a:hover ul li a { display:inline; width:1px; word-wrap:normal; background:#eee; color:#c00; text-decoration:underline; border:0; }
/* style the background and forground colors of the links on hover */ .menu ul li a:hover ul li a:hover { text-decoration:none; color:#000; }