Help with displaying information using css and cinditional comments

  • Thread starter wScott
  • Start date
  • #1
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;}
 

Answers and Replies

Related Threads on Help with displaying information using css and cinditional comments

Replies
2
Views
505
  • Last Post
Replies
9
Views
825
Replies
5
Views
315
  • Last Post
Replies
19
Views
1K
  • Last Post
Replies
8
Views
744
Replies
6
Views
5K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
0
Views
3K
  • Last Post
Replies
17
Views
780
  • Last Post
Replies
3
Views
59K
Top