Jump to content

Creating a sub menu


oggyswain

Recommended Posts

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

Link to comment
Share on other sites

<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>

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...