I need to enhance my existing website by adding a sub menu to the current menu code. This will make it easier for users to navigate to different pages on the site. Can someone please assist me with this task?
Here is the HTML code for the current menu:
<div id="menu">
<ul>
<li><a href="index.html" accesskey="1" title="">Home</a></li>
<li><a href="services.html.html" accesskey="2" title="">Services</a></li>
<li><a href="faq.html" accesskey="3" title="">FAQ</a></li>
<li class="active"><a href="about.html" accesskey="4" title="">About</a></li>
<li><a href="contact.html" accesskey="5" title="">Contact Us</a></li>
</ul>
</div>
And here is the CSS code for styling the menu:
/** HEADER */
#header-wrapper
{
overflow: none;
height: 100px;
margin-bottom: 20px;
background: rgba(0,0,0,0.70);
}
#header {
overflow: none;
}
/** LOGO */
#logo {
float: left;
width: 10px;
height: 100px;
}
#logo h1, #logo p {
margin: 0px;
line-height: normal;
}
#logo h1 a {
padding-left: 1px;
text-decoration: none;
font-size: 1.50em;
font-weight: 600;
font-family: 'Archivo Narrow', sans-serif;
color: #FFFFFF
}
/** MENU */
#menu {
float: right;
height: 110px;
}
#menu ul {
margin: 0px;
padding: 0px;
list-style: none;
line-height: normal;
}
#menu li {
float: left;
margin-right: 1px;
}
#menu a {
display: block;
height: 100px;
padding: 0px 30px;
line-height: 100px;
text-decoration: none;
text-transform: uppercase;
color: #FFFFFF;
}
#menu a:hover {
text-decoration: none;
background: rgba(0,0,0,0.70);
}
#menu .active
{
background: rgba(0,0,0,0.70);
}