Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Web Graphics
Online Tools:

Advertise Here

CSS Library: Vertical CSS Menus: Here

SuckerTree Vertical Menu (v1.1)

Author: Dynamic Drive

Nov 8th, 06: Fixed rendering issue in IE7, plus added support for automatic detection of sub menus width. No more configuring the "left" attributes!

This is a vertical, predominantly CSS based (with a touch of JavaScript) multi-level menu. It supports as many sub levels as you desire, plus multiple Suckertree menus on the same page. The CSS and JavaScript automatically adopts to your HTML code in each case.

The trick to Suckertree is a small adoptable piece of JavaScript that crawls the inner levels of a list menu and assigns the appropriate show/hide behavior to them. This differs from Suckerfish menu, which merely uses JavaScript to compensate for IE's shortcomings when it comes to CSS, so the menu is more rigid and requires manual changes to the CSS as the number of levels in your menu changes.

Demo:

The single image:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 11/08/2006

Revision History: Updated Nov 8th, 06' to version 1.1

Usage Terms: Click here

Your Comments (241)

Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.

Comment Pages 18 of 25 pages « First  <  16 17 18 19 20 >  Last »

update to FF 2.0
Posted by xelor on 11/12, 03:39 PM
I've got this menu in use and like it very much.
Now, I'd like to add three menus to this menu with different CSS styles and can't get it to work.
(1) In the js, I havevar menuids=["menutree1,menutree2"]
(2) In the css, I duplicated all the styles, but appended a "1" after the menudiv to get menudiv1 with different colors.
(3) On the webpage, I used something like this, but the top ones, link1 and link2, won't display at all.<div class="menudiv1">
<ul id="menutree2">
<li>Link1</li>
<li>Link2</li>
</ul></div>

<div class="menudiv2">
<ul id="menutree">
<li>Link3</li>
<li>Link4</li>
</ul></div>

Can you help.
Posted by Blitzen on 11/14, 09:57 AM
Can some one help me to make it Right - Left menu. Now this menu is left - Right.

I mean can some one help me to make in such a way that the menu will reside on Right hand side and the sub menu will appear on left hand side.

Thanks.
Posted by Justin on 12/03, 05:26 AM
Hi guys!
I'm using this menu for quite a while now. Unfortunately theres a small problem. I've modified the menu so the items are really button like. Instead of text in a list item, i've put an image in it. Works great and well on Firefox, Opera and IE7. But NOT on IE6. I've gone through a lot of forums already and rewritten the code, but no success.

Problem: When you go over an item with a submenu, the item you move over is repeated underneat the item, as many times as the submenu has buttons. I think theres a class or ID problem, but I can't find it. Probably theres someone here to help me out?

main page: http://www.oxygym.nl/index.php
menu css: http://www.oxygym.nl/html/menu.css

Hope you can help me out!
Thanks!
Posted by Boss on 12/10, 05:51 AM
Great script! However, the client I am using it for isn't happy that it doesn't work in IE 5. The menu items are not showing up and the height of each item is collapsed. ANy ideas?
Posted by John on 12/11, 10:02 AM
I'm trying to use this on my site, but I am using it in a div that is about 200 px and sticks to the left. Whenever I hover over a folder, it opens up the next row, but it is always cut off where the div ends. Is there any way I could help this?
Posted by Mitchell on 12/15, 12:56 PM
Can this work with images as well?
I have a vetical navbar I'm working on with image buttons, and I'd like to click on one of them andfour more show up on a second line (hope this makes sense)

Thanks in advance!
Posted by Mike Dragonetti on 12/19, 09:01 AM
yes
Posted by kamal kant on 12/26, 01:23 AM
I used this code and customized it on my page, and the menu works fine in IE. However, only one submenu shows in FF and Netscape Nav9. Please help!!
Posted by carmen rhone on 01/08, 02:33 PM
Hi, Chris:

I downloaded the code, but the image (arrow) didn't show up. How can I fix it?

Also, the sublist items are transparent until you move over. Can I make it not transparent?

Thanks.
Jen
Posted by Jen on 01/09, 02:43 PM

Comment Pages 18 of 25 pages « First  <  16 17 18 19 20 >  Last »

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Supported BB codes: [b], [i], [u], [em], [strike], [strong], [pre], [code], and [blockquote].

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below ("previewing" post does not require it):


Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library