Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to create drop down menu with table, td, td. Re: How to create drop down menu with table, td, td.

#66534
gooflett
Member

What I would try doing is this.

The <td> that holds the link you want to be a dropdown give it an ID or class of "dropdown"

Next add an UL inside the td tag
<td class="dropdown">
<a>Main Link</a>

<ul>
<li>link 1</li>
<li>link 2</li>
<li>link 3</li>
</ul>

</td>

/* CSS /*
.dropdown ul {display:none}
.dropdown:hover ul {display:block;}

From there on you will need to position your UL using relative positioning. Also you will need a fix for IE6 because it doesn’t like :hovers except on a tags. But there are workarounds like http://www.xs4all.nl/~peterned/csshover.html

I hope this helps. If not. You could always use javascript to throw something up on hover.