Can anyone help me with my drop-down menu issue? It's only displaying the last items and I suspect there is something wrong with my CSS. Here are the details:
HTML Code:
<div class="menuBar">
<nav class="Menu">
<ul class="main">
<li><a href="http://www.lombardisonthebay.com/" class="active">Home</a></li>
<li><a href="wedding.html">Weddings</a>
<ul>
<li><a href="wedding-gallery.html">Gallery</a></li>
<li><a href="testimonials.html">Testimonials</a></li>
</ul>
</li>
<li><a href="restaurant.html">Restaurant</a>
<ul>
<li><a href="restaurant-gallery.html">Gallery</a></li>
</ul>
</li>
<li><a href="social.html">Special Occasions</a></li>
<li><a href="corporate.html">Corporate</a></li>
<li><a href="upcoming.html">Upcoming Events</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="locations.html">Our Locations</a></li>
</ul>
</nav>
</div>
CSS Code:
nav.Menu {
text-align: center;
margin-top: 14px;
}
nav.Menu .main li {
display: inline-block;
margin-right: -4px;
position: relative;
padding: 5px 20px;
cursor: pointer;
}
nav.Menu .main li ul li {
padding: 0;
position: absolute;
top: 48px;
left: 0;
width: 150px;
display: none;
opacity: 0;
visibility: hidden;
}
nav.Menu .main li ul li {
background: #83562c;
display: block;
color: #fff;
margin-top: -2px;
z-index: 1000 !important;
}
nav.Menu .main li:hover ul li {
background: #83562c;
}
nav.Menu .main li:hover ul li {
display: block;
opacity: 1;
visibility: visible;
z-index:99;
}
nav.Menu a {
color: #fff;
font: bold 13px/42px Arial, Helvetica, sans-serif;
padding: 0 10px;
text-align: center;
}
nav.Menu a:hover {
color: #eacc90;
}