I have created a unique horizontal menu using DIVs without the use of ul and li lists. Currently, I am searching for a way to delay the collapse of the submenus when the mouse moves out. I don't mind if the solution involves JavaScript, jQuery, or CSS. I have attempted various JavaScript solutions but none have been successful.
Here is the CSS code:
.topmenu {
margin: 0 auto;
width: auto;
float: left;
position: relative;
z-index: 4;
height: 50px;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
color: #444;
}
.topmenu a {
padding: 0 16px;
line-height: 50px;
font-size: 16px;
font-weight: normal;
display: block;
outline: 0;
text-decoration: none;
position: relative;
color: #444;
}
/* Rest of the CSS code goes here */
And the HTML code:
<div class="topmenu">
<div class="home"><a href="#">HOME</a>
<div class="subhome">
<!-- Submenu content goes here -->
</div>
</div>
<!-- More menu items go here -->
</div>
You can view a test example of this menu here.
Thank you
[1]: