I am currently working with an HTML table and my goal is simple. I want to create a menu that opens when the mouse hovers over it, but within a table.
When I hover my mouse over the
<span>Telephone:</span>
element, I want the <div class="secondary_menu">...</div>
to appear on the right side of the <td>
element (using z-index) with a position of absolute
.
Check out the code on JsFiddle
Here is the HTML code:
<table style="width:100%">
<tr>
<td>
<span>Telephone:<br /><br /><br /><br /><br /></span>
<div class="secondary_menu">
<ul>
<li>My Dashboard</li>
<li>My Dashboard</li>
<li>My Dashboard</li>
<li>My Dashboard</li>
</ul>
</div>
</td>
<td>555 77 854</td>
</tr>
</table>
This implementation involves CSS and jQuery.