dreamer610
MIS
Hi,
I'm trying to create a menu which allows for multiple levels of submenus, but I cannot figure out how to get the 2nd level to show. I've tried many different things but only the first level will appear. Below is my code. Any help anyone can offer would be greatly appreciated.
<html>
<head>
<style type="text/css">
#sddm
{ margin: 0;
padding: 0;
z-index: 30}
#sddm li
{ margin: 0;
padding: 0;
list-style: none;
float: left;
font: bold 11px arial}
#sddm li a
{ display: block;
margin: 0 2px 0 0;
padding: 4px 10px;
width: 60px;
background: #cccc66;
color: #FFF;
text-align: center;
text-decoration: none}
#sddm li a:hover
{ background-color: #FFFF99; color:#000}
#sddm div
{ position: relative; z-index:35;
display:none;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #000}
#sddm li:hover div ul li div
{ position: absolute;
display:none;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #000}
#sddm div a
{
display: block;
margin: 0;
padding: 5px 10px;
width: auto;
white-space: nowrap;
text-align: left;
text-decoration: none;
background: #fff;
color: #000;
font: 11px arial}
#sddm li:hover div
{position:absolute;
display:block;
background: #49A3FF;
color: #000}
#sddm li:hover div ul li:hover div:hover
{ position: absolute;
display:block;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #000}
</style>
</head>
<body>
<ul id="sddm">
<li><a href="#" >Item 1</a>
<div>
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
<a href="#">Item 4</a>
<a href="#">Item 5</a>
</div>
</li>
<li><a href="#">Item 2</a>
<div>
<a href="#">Item 1</a>
<ul><li><div>
<a href="#">Sub-Item 1</a>
<a href="#">Sub-Item 2</a></div></li></ul>
<a href="#">Item 2</a>
<ul><li><div>
<a href="#">Sub-Item 1/a>
<a href="#">Sub-Item 2</a></div></li></ul>
<a href="#">Item 3</a>
<a href="#">Item 4</a>
</div>
</li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
</body>
I'm trying to create a menu which allows for multiple levels of submenus, but I cannot figure out how to get the 2nd level to show. I've tried many different things but only the first level will appear. Below is my code. Any help anyone can offer would be greatly appreciated.
<html>
<head>
<style type="text/css">
#sddm
{ margin: 0;
padding: 0;
z-index: 30}
#sddm li
{ margin: 0;
padding: 0;
list-style: none;
float: left;
font: bold 11px arial}
#sddm li a
{ display: block;
margin: 0 2px 0 0;
padding: 4px 10px;
width: 60px;
background: #cccc66;
color: #FFF;
text-align: center;
text-decoration: none}
#sddm li a:hover
{ background-color: #FFFF99; color:#000}
#sddm div
{ position: relative; z-index:35;
display:none;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #000}
#sddm li:hover div ul li div
{ position: absolute;
display:none;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #000}
#sddm div a
{
display: block;
margin: 0;
padding: 5px 10px;
width: auto;
white-space: nowrap;
text-align: left;
text-decoration: none;
background: #fff;
color: #000;
font: 11px arial}
#sddm li:hover div
{position:absolute;
display:block;
background: #49A3FF;
color: #000}
#sddm li:hover div ul li:hover div:hover
{ position: absolute;
display:block;
margin: 0;
padding: 0;
background: #EAEBD8;
border: 1px solid #000}
</style>
</head>
<body>
<ul id="sddm">
<li><a href="#" >Item 1</a>
<div>
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
<a href="#">Item 4</a>
<a href="#">Item 5</a>
</div>
</li>
<li><a href="#">Item 2</a>
<div>
<a href="#">Item 1</a>
<ul><li><div>
<a href="#">Sub-Item 1</a>
<a href="#">Sub-Item 2</a></div></li></ul>
<a href="#">Item 2</a>
<ul><li><div>
<a href="#">Sub-Item 1/a>
<a href="#">Sub-Item 2</a></div></li></ul>
<a href="#">Item 3</a>
<a href="#">Item 4</a>
</div>
</li>
<li><a href="#">Item 3</a></li>
<li><a href="#">Item 4</a></li>
</ul>
</body>