oggyswain Posted April 28, 2010 Report Share Posted April 28, 2010 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 Quote Link to comment Share on other sites More sharing options...
Andrea Posted April 28, 2010 Report Share Posted April 28, 2010 <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> Quote Link to comment Share on other sites More sharing options...
oggyswain Posted April 28, 2010 Author Report Share Posted April 28, 2010 You have the answer for me before I even put up the question. Thanks Again. Quote Link to comment Share on other sites More sharing options...
oggyswain Posted April 28, 2010 Author Report Share Posted April 28, 2010 How do I get it to be collapsable. Right now it stays under the original menu. I would like it to collapse under the heading. Quote Link to comment Share on other sites More sharing options...
Andrea Posted April 28, 2010 Report Share Posted April 28, 2010 Collapsing is a bit more complicated - that requires some CSS work and for IE also JavaScript. Look for suckerfish menues - or Eric has a nice collection of CSS Nav Menues here: http://www.visibilityinherit.com/tools.php Quote Link to comment Share on other sites More sharing options...
oggyswain Posted May 9, 2010 Author Report Share Posted May 9, 2010 Hi Andrea, I have been fooling around with the code you recommended. I am confused. This is what I get. http://nextlevels.ca/test.html Any suggestions? Quote Link to comment Share on other sites More sharing options...
falkencreative Posted May 9, 2010 Report Share Posted May 9, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.