The following is an example of a really basic dropdown menu. It could be further reduced to its absolute essentials, but this actually looks good:
Code: Select all
<div style="text-align: center">
<div style="width: 120px; margin-left: auto; margin-right: auto; text-align: center">
<span style="background-color: #667A86; color: white; width: 120px; display: block"
onmouseover="document.getElementById('subMenu').style.visibility = 'visible'"
onmouseout="document.getElementById('subMenu').style.visibility = 'hidden'">
Menu
</span>
<div id="subMenu"
style="visibility: hidden; background-color: #99CCCC; width: 110px;
text-align: left; padding: 5px"
onmouseover="document.getElementById('subMenu').style.visibility = 'visible'"
onmouseout="document.getElementById('subMenu').style.visibility = 'hidden'">
<a style="text-decoration: none" href="http://www.dante.com/">Inferno Enteprises</a><br>
<a style="text-decoration: none" href="http://www.dante.com/discussion/">Ask Virgil</a>
</div>
</div></div>
I know that this works with both Mozilla 1.5a and IE 6, but can't vouch for other browsers / versions.