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 (247)

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 22 of 25 pages « First  <  20 21 22 23 24 >  Last »

Thanks a lot for this code!
Posted by The Traveller on 06/10, 03:18 PM
Hello,

I tried it but in IE it does not show Sub Menu?
How do we fix it?

Although I am viewing this website in IE where it is showing Sub Menu, but when I add the code to my Web Page then it does not show sub Menus
Posted by Niket on 06/12, 10:08 PM
hi all !!
i can't change height of menu and submenu!!can you help me ? thanks's lot.
Posted by vohoangvu on 06/19, 10:49 AM
Hi
I am so happy to get this kind of rollovermenu to make my site cool but this suckertree menu did not displays properly as i designed in some IE, i don't know what really the matter is? will you help me to track this problem.
Posted by Jay Gurung on 06/21, 02:17 AM
Hi,
You need to close your li tag after </ul>
Then this should work....
Posted by yogesh on 06/23, 06:03 AM
I want to add a delay to this javascript so that when I mouse off the menu then it has like a 3 second delay before dissapearing.
Can you help me to do that ????
Posted by Jigonk on 06/25, 09:57 PM
Help! Sometime(very often) I move the mouse between the sub-items, the sub-menu suddenly disappears. This problem only occurs in IE(I use IE7).
Posted by stephen on 06/26, 04:27 AM
Great stuff, and great comments, it helpt! I'm just in a midle of a project, and it's the easiest way i saw. When it's finished I will post you the URL of the page
Posted by Kristijan on 06/27, 07:44 AM
I have a main menu, with a sub menu and then each item in the sub menu has items within it. Example:

I. Products
A. Product Category I
1. Item
2. Item
B. Product Category II
3. Item

By default the 2nd level and beyond all have the same width. I've tried modifying the CSS and JavaScript to no avail. Any ideas on how to make the width of each level (after the 1st) of the menu a different width? Thanks. Aaron.
Posted by Aaron on 06/29, 06:48 PM
I have a problem width selects in web pages with this menu, in IE-6. Because the SELECT elements ignore Z-index.
Posted by jjames on 07/08, 01:04 AM

Comment Pages 22 of 25 pages « First  <  20 21 22 23 24 >  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