- #1
wScott
- 88
- 0
Good evening, morning, or what-not time it is in your present proximity. I've been trying to find a way to display some information in a drop down menu in IE for the past while and haven't been able to come up with a solution, it works fine in firefox and netscape.
HTML code:
<div class='menu'>
<ul>
<li><a class='hide' id='activeLink' href='index[2].htm'>Home
<!--[if gt IE 6]>
<a id='activeLink' href='index[2].htm'>Home
<![endif]-->
<ul id='HomeSub'>
<li><a href='#'>sub</a></li>
<li><a href='#'>sub</a></li>
<li><a href='#'>sub</a></li>
</ul>
<!--[if gt IE 6]>
</a>
<![endif]-->
</a></li>
After that there is some more code that is very similar to that. Sorry if this is a simple question, haven't worked with conditional comments before.
The CSS code I tried to display it were:
.menu ul li a.hide a:hover ul {
display: block;
position: absolute;
left: 0px;}
.menu ul li a:hover ul#HomeSub {
left: -30px;
width: 100px;}
HTML code:
<div class='menu'>
<ul>
<li><a class='hide' id='activeLink' href='index[2].htm'>Home
<!--[if gt IE 6]>
<a id='activeLink' href='index[2].htm'>Home
<![endif]-->
<ul id='HomeSub'>
<li><a href='#'>sub</a></li>
<li><a href='#'>sub</a></li>
<li><a href='#'>sub</a></li>
</ul>
<!--[if gt IE 6]>
</a>
<![endif]-->
</a></li>
After that there is some more code that is very similar to that. Sorry if this is a simple question, haven't worked with conditional comments before.
The CSS code I tried to display it were:
.menu ul li a.hide a:hover ul {
display: block;
position: absolute;
left: 0px;}
.menu ul li a:hover ul#HomeSub {
left: -30px;
width: 100px;}