I have limited experience with list menus and am struggling to create a horizontal submenu with its own styling. Despite multiple attempts, I have been unsuccessful in finding a solution and have put the project on hold for now.
Here is what I currently have: www.CAITMIZZI.COM/home.html
The main issue I faced was making the submenu link function without interfering with the main menu. I believe my approach may be incorrect and there could be a simpler solution. Please take a look and provide any feedback you may have.
Thank you!
Below is the CSS code - note that I initially tried to style it using the .sub_menu class but am now using the hoverable class:
#MenuWrapper{
width: 550px;
position: absolute;
left: 30px;
top: 60px;
z-index: 9;
height: 540px;
cursor:pointer;
}
#Menu {
font-family: Impact, Charcoal, sans-serif;
font-size:125px;
line-height: 105px;
height: 540px;
width: 550px;
z-index: 8;
text-decoration: none;
color: #CCC;
}
#Menu a{
text-decoration: none;
color: #9CC;
}
#Menu ul {margin:0; padding:0;}
#Menu li {
list-style: none;}
#Menu li a:hover {
color: #CCFF00;
text-decoration: none;
}
.sub_menu{
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
color: #903;
text-decoration: none;
}
a.hoverable {
position: relative;
cursor: pointer;
color: black;
text-decoration: none;
}
a.hoverable div {
position: absolute;
display: none;
top: 50px;
left: 425px;
margin: 0em;
padding: 1em;
z-index: 999;
height: 50px;
width: 400px;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
color: #903;
}
a.hoverable:hover div {
display: block;
}
Here is an example of the layout:
<div id="MenuWrapper">
<div id="Menu">
<ul>
<li><a href="bio.html">Bio</a></li>
<li><a href="beauty.html" class="hoverable">Portfolio<div> > beauty | fashion | grooming | advertising</div></a></li>
<li><a href="bridal.html">Bridal</a></li>
<li><a href="client_list.html">Client List</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>