1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
/***********************
* CSS drop-down menus *
***********************/
div.menus
{
clear: both;
font-size: 11px;
width: 65em;
margin-left: auto;
margin-right: auto;
padding-top: 1em;
padding-bottom: 5.4em;
}
div.menus ul { margin: 0; }
/*****************************************************
* swap first and second ul rows, so top menus are *
* written last, with higher priority, resulting *
* in drop-down menus appearing over the menus below *
*****************************************************/
div.menus>ul
{
position: relative;
float: left;
clear: both;
background-color: #9cf;
height: 2.2em;
top: -2.2em;
}
div.menus>ul:first-child { top: 2.2em; }
div.menus li
{
float: left;
text-align: center;
position: relative;
list-style-type: none;
width: 6em;
background-color: #9cf;
border: 1px solid #9cf;
line-height: 2.0em;
}
div.menus li:hover
{
background-color: #069;
border: 1px solid #fff;
}
div.menus a
{
display: block;
text-decoration: none;
color: #fff;
}
div.menus ul li ul
{
margin: 0;
position: absolute;
width: 7.5em;
left: -1px;
}
div.menus ul li ul li
{
width: 100%;
background-color: #fff;
border-color: #fff;
}
/******************************
* colors for drop-down menus *
******************************/
div.menus ul li ul li a { color: #000; }
div.menus ul li ul li:hover a { color: #fff; }
/*****************************
* show,hide drop-down menus *
*****************************/
div.menus ul li ul { display: none; }
div.menus ul li:hover ul, div.menus ul li ul:hover { display: block; }
|