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

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 14 of 26 pages « First  <  12 13 14 15 16 >  Last »

How do you make it so the folders open on the left side? I want to put this on the right side of the page.
Posted by Josh Willey on 06/27, 07:51 PM
Hi everyone...
I wanna know how to use this menu with iframes..
Bcos when i click one menu,the same menu page appears on the sub frame..Plz help me..
Posted by Rajesh on 06/29, 06:40 AM
LOVELY. Iv'e been looking for this code for quite some time o_o! KUDOS.
Posted by Dani on 06/29, 08:43 PM
great code if it works but i have a problem with this code both in firefox and in internet explorer. please help me.. http://www.SSandAssociates.com In internet explorer the length of the menu box appears longer than the sidebar. I tried reducing the width but still the same. In firefox the submenu appear behind the body. Please help me..... Thank you very much.
Posted by Culver on 06/30, 07:11 AM
This is code don't work in Safari.
Posted by Baby on 07/10, 04:32 PM
All OK. Thanks.
Posted by WMZ on 07/10, 04:36 PM
This menu is awesome. I'm having one problem on Firefox (2.0), but not on IE (I know - amazing). When the page first loads there is a micro-second flash of part of a sub-menu that shows to the right, then it's gone. The site's owner isn't bothered by this, but it is making me crazy. Any thoughts?
Posted by Lisa on 07/11, 11:51 PM
I have a left-flushed menu with sub-menus written in html. Next to it on the right is a Flash swf playing. My sub-menus keep showing "BELOW" the Flash instead of above it. Anyone knows how I can get it to show above the Flash? I know I need a Javascript... does anyone have this script?

Yuwathida
Posted by Yuwathida on 07/12, 07:37 AM
Hi,
How can I avoid typing the content of the menu in html? Can I put all the content (i.e Item1, Item2 etc) in css or an external file and then call it from html?

I have more than 10 pages on the web and it would really be a pain to go to each html page and change the menu content if I want to add another item or subitem. Thanks
Posted by Max on 07/13, 12:07 PM
Chris, here is the problem: <li>Folder 1.2</li>
should be: <li>Folder 1.2
Posted by John Baker on 07/28, 02:32 AM

Comment Pages 14 of 26 pages « First  <  12 13 14 15 16 >  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