Jump to content

Recommended Posts

Posted

How do I create a sub menu from this code.

 

<div class="nav-bar">

<ul>

<li><a class="current">Home</a></li>

<li><a href="about-us.html">About Us</a></li>

<li><a href="testimonials.html">Testimonials</a></li>

<li><a href="services.html">Services</a></li>

<li><a href="events.html">Events</a></li>

<li><a href="contacts.html">Contact Us</a></li>

</ul>

 

Thanks

Posted
<ul>
<li><a class="current">Home</a></li>
<li><a href="about-us.html">About Us</a></li>
<li><a href="testimonials.html">Testimonials</a></li>
<li><a href="services.html">Services</a>
<ul>
<li>Jodeling</li>
<li>Under-water Basket Weaving</li>
<li>Flea Training</li>
</ul>
</li>
<li><a href="events.html">Events</a></li>
<li><a href="contacts.html">Contact Us</a></li>
</ul>

  • 2 weeks later...
Posted

I'm not sure what examples you are working from, since the link that Andrea provided had several different options for dropdown menus. Personally,I usually use suckerfish menu: http://www.htmldog.com/articles/suckerfish/dropdowns/ (or the jquery version of it which adds some minor javascript based effects: http://users.tpg.com.au/j_birch/plugins/superfish/)

 

In your code, it appears like you have nested unordered lists, which is correct, but I'm not seeing any CSS styling in place to hide/show the submenu or to style those sumbenus any differently than the horizontal navigation.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...