ratter
01-19-2010, 09:02 AM
Hi everyone,
In order to get a 2 itmes menu + drop menu when first menu item is hovered, I supplied the following code:
<style type="text/css" media="all">
body { behavior:url(csshover.htc);}
div#wrapper * {margin:0; padding:0;behavior:url(csshover.htc);}
#wrapper {border:1px solid #686;float:left;font-family:lucida, arial, sans-serif;}
#wrapper ul {float:left;border:2px solid red;}
#wrapper li {border:2px solid blue; list-style-type:none; float:left;}
#wrapper a
{
background-color:#DDD;
padding: .3em 6px;
display:block;
}
#wrapper a:hover {color:#ccc; background-color:#666;}
#wrapper li ul {position:absolute; width:7em;display:none;}
#wrapper li ul li {width:100%;}
#wrapper li:hover ul {position:absolute; width:7em;display:block;}
</style>
</head>
<body>
<div id="wrapper">
<ul>
<li><a href="#">Item 1</a>
<ul>
<li><a href="#">Item 1a</a></li>
<li><a href="#">Item 1b</a></li>
</ul>
</li>
<li><a href="#">Item 2</a></li>
</ul>
</div>
</body>
</html>
With "Google chrome" it worked fine, with ie6 id did not. I was advised to add a style: body { behavior:url(csshover.htc);}
and so i did but the drop menu still doesn't show up with ie6. Can i get help with this ?
Thanks
In order to get a 2 itmes menu + drop menu when first menu item is hovered, I supplied the following code:
<style type="text/css" media="all">
body { behavior:url(csshover.htc);}
div#wrapper * {margin:0; padding:0;behavior:url(csshover.htc);}
#wrapper {border:1px solid #686;float:left;font-family:lucida, arial, sans-serif;}
#wrapper ul {float:left;border:2px solid red;}
#wrapper li {border:2px solid blue; list-style-type:none; float:left;}
#wrapper a
{
background-color:#DDD;
padding: .3em 6px;
display:block;
}
#wrapper a:hover {color:#ccc; background-color:#666;}
#wrapper li ul {position:absolute; width:7em;display:none;}
#wrapper li ul li {width:100%;}
#wrapper li:hover ul {position:absolute; width:7em;display:block;}
</style>
</head>
<body>
<div id="wrapper">
<ul>
<li><a href="#">Item 1</a>
<ul>
<li><a href="#">Item 1a</a></li>
<li><a href="#">Item 1b</a></li>
</ul>
</li>
<li><a href="#">Item 2</a></li>
</ul>
</div>
</body>
</html>
With "Google chrome" it worked fine, with ie6 id did not. I was advised to add a style: body { behavior:url(csshover.htc);}
and so i did but the drop menu still doesn't show up with ie6. Can i get help with this ?
Thanks