/* overgenomen en aangepast uit stylin' with CSS - Charles Wyke-Smith isbn 0-321-30525-6 */

/* the horizontal menu starts here */
div#listmenu {
   width:100%;                   /* makes the div full width */
   float:left;                   /* makes the div enclose the list */
                                 /* border-top:1px solid #069;*/      /* draws line on top edge of div */
                                 /* border-bottom:1px solid #069;*/    /* draws line on bottom edge of div */
   font-size:.8em;               /* SET FONT-SIZE HERE */
   background-color:transparent; /*#CCF; colors the div */
                                 /*margin-top:20px;  TEMPORARY - pushes the div away from the top of the browser for clarity in this example*/
   margin-top:10px;
}
div#listmenu ul {
   margin:0 0 0 75px;            /* indents ul from edge of container */
}
div#listmenu li {
   float:left;                   /* causes the list to align horizontally instead of stack */
   position:relative;            /* positioning context for the absolutely positioned drop-down */
   list-style-type:none;         /* removes the bullet off each list item */
   background-color:#ffffff;     /* sets the background of the menu items */
   border-top:1px solid #069;    /* draws line on top edge of div */
   border-bottom:1px solid #069; /* draws line on bottom edge of div */
   border-right:1px solid #069;  /* creates dividing lines between the li elements */
}
div#listmenu li:first-child {
        border-left:1px solid #069; /*the first vertical line on the menu */
        }
div#listmenu li:hover {
        background-color:#ffffc0; /*sets the background of the menu items */
        }
div#listmenu a {
        display:block;
        padding:0 6px; /*creates space each side of menu item's text */
        text-decoration:none;    /* removes the underlining of the link */
        color:#069;     /* sets the type color */
        }
div#listmenu a:hover {
        color:#F33;
        }
/* the horizontal menu ends here */

/* the drop-down starts here */
div#listmenu ul li ul {
        margin:0; /* prevents the TEMP value inheriting from the horiz menu - OK to remove if you remove TEMP above */
        position:absolute; /* positions the drop-down ul in relation to its relatively positioned li parent */
        width:15em; /*sets the width of the menu - in combo with the li's 100% width, makes the menu stack*/
        left:-1px; /*aligns the drop exactly under the menu */
        }
div#listmenu ul li ul li {
        width:100%; /* makes the list items fill the list container (ul) */
        border-left:1px solid #069; /*  three sides of each drop-down item */
        border-bottom:1px solid #069;
        border-top:none;
        border-right:1px solid #069;
        text-align:left;
        }
div#listmenu ul li ul li:first-child {
        border-top:1px solid #069; /*the top edge of the dropdown */
        }
/* make the drop-down display as the menu is rolled over */
div#listmenu ul li ul {display:none;} /* conceals the drop-down when menu not hovered */
div#listmenu ul li:hover ul {display:block; } /* shows the drop-down when the menu is hovered */

/* THE HACK ZONE - */
/* hack for IE (all flavors) so the menu has a vertical line on the left */
* html div#listmenu ul {
        float:left; /* makes the ul wrap the li's */
        border-left:1px solid #000; /* adds the rightmost menu vertical line to the ul */
        margin-left:30px; /* IE doubles the given value above - why? */
        }
* html div@listmenu a {display:block;} /* makes IE5 & 5.5 accept the padding on the link */
/* add a top line to drops and pops in IE browsers - can't read :first-child */
* html  div#listmenu ul li ul {
        border-top:1px solid #069;
        border-left:0px; /* stops the drop inheriting the ul border */
        }
/* end of hack zone */
/* END OF LIST-BASED MENU */

