oggyswain Posted April 28, 2010 Report 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
Andrea Posted April 28, 2010 Report 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>
oggyswain Posted April 28, 2010 Author Report Posted April 28, 2010 You have the answer for me before I even put up the question. Thanks Again.
oggyswain Posted April 28, 2010 Author Report 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.
Andrea Posted April 28, 2010 Report 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
oggyswain Posted May 9, 2010 Author Report 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?
falkencreative Posted May 9, 2010 Report 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now