Could you please review this Fiddle link:
https://jsfiddle.net/wd9wj7oe/1/
The CODES are as follows:
HTML
<nav id="navigation">
<ul class="menu">
<li><a href="#">home</a></li>
<li><a href="#">about</a></li>
<li><a href="#">products</a></li>
<ul>
<li><a href="#">Line 1</a></li>
<li><a href="#">Line 2</a></li>
<li><a href="#">Line 3</a></li>
<li><a href="#">Line 4</a></li>
<li><a href="#">Line 5</a></li>
</ul>
<li><a href="#">help</a></li>
<li><a href="#">join us</a></li>
<li><a href="#">contact</a></li>
</ul>
</nav>
CSS:
#navigation{
float: left;
list-style: none;
font-family: Arial;
font-size: 20px;
position: absolute;
}
#navigation li{
list-style: none;
float:left;
padding-left: 28px;
}
#navigation ul ul{
left: 0;
top: 100%;
position: absolute;
float: none;
list-style: none;
}
#navigation ul ul li{
display: none;
left: 0;
float: none;
z-index: 1000;
}
#navigation ul li:hover > ul{
display:block;
}
There seem to be two issues with the code:
1 - The sub-menu does not appear when hovering over "products" as expected.
2 - Even if it were to show up, the positioning of the sub-menu is incorrect.
Please assist! Thank you!