<style>
#menu {
width: 14em; /* set width of menu */
background: #eee;
} #menu ul { /* remove bullets and list indents */
list-style: none;
margin: 0;
padding: 0;
}
/* style, color and size links and headings to suit */
#menu a, #menu h2 {
font: bold 11px/16px arial, helvetica, sans-serif;
display: block;
border-width: 1px;
border-style: solid;
border-color: #ccc #888 #555 #bbb;
margin: 0;
padding: 2px 3px;
}
#menu h2 {
color: #ffffff;
background: #000;
text-transform: uppercase;
}
#menu a {
color: #000;
background: #ffffff;
text-decoration: none;
}
#menu a:hover {
color: #a00;
background: #fff;
}
#menu li {
/* make the list elements a containing block for the nested lists */
position: relative;
} #menu ul ul ul {
position: absolute;
top: 0;
left: 100%; /* to position them to the right of their containing block */
width: 100%; /* width is based on the containing block */
}
div#menu ul ul ul,
div#menu ul ul li:hover ul ul
{display: none;}
div#menu ul ul li:hover ul,
div#menu ul ul ul li:hover ul
{display: block;}
