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

Tnx, very nice. Thanks
Posted by Jim H on 07/09, 03:09 PM
Hi. As you can see on my webpage, the menu is dropping behing the image. I tried z-index but that isnt working, any ideas on how to make it drop over top of the image?
Posted by Everett on 07/12, 01:00 PM
Hey, i am trying to use the horizontal and vertical suckertree menu on the same page but for some reason the drop downs will no longer work if more than one menu is placed onto the page - im guessing its probably coz of the 2 different js - is there a way to get these menus working on the same page with drop downs.
Thx
Posted by Jo on 07/14, 06:20 PM
Dont worry guys got it sorted, i just changed the menuids to topmenuids in the js file and it worked.
var topmenuids=["treemenu1"] - first menu
var menuids=["suckertree1"] - second menu

Sweet!
Posted by Jo on 07/14, 06:54 PM
it does not work in IE7. (sub-tree menu does not appear in IE7)!

Plz help me.
Posted by atau on 08/11, 05:10 AM
it doesn't work in IE7. the submenu doesn't appear!
plz help me. im very frustrated.
Posted by arakan online on 08/11, 05:17 AM
So trying to remember how to do this with out paying for a template..
Great work..
Posted by jenps on 08/11, 07:14 AM
I am unable to control the height of Sub menu items. if i use height parameter for controling the height of sub menu it disturbs the complete menu.

can somebody assist me regarding this problem.


Bhuvnesh
Posted by bhuvnesh on 08/13, 02:32 AM
Hey guys instead of having the border a double line in between main items and submenus, just change css and looks much better.

border-right: 1px solid #ccc;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-bottom: 0;
Posted by Steve Hill on 08/16, 10:15 AM
Could someone PLEASE help me?

I tried using this code on the new index page I have been working on for my website, but it is not working. The main menu is showing, but the drop downs are not.

I checked the code and I didn't see anything that looked like it was wrong, but this is the first time I have used css, and I am unfamiliar with it, so I am not sure what the problem is.

I have viewed it in both Firefox and IE and it doesn't work in either browser. I tried taking the flash animation off of the page to see if that was causing the problem, but it wasn't. I also tried making the table that the menu is in larger to see if that would solve the problem, but it didn't.

If someone could please look at the code and tell me what I have done wrong and post everything I need to change, I would greatly appreciate it. Please put the entire section of the code I need to change so I can see exactly where it goes.

Here it the URL of the page:
http://reflectionsphotographybyroxanne.com/test2.html

Thank you.
Posted by Roxanne on 08/29, 02:33 PM

Comment Pages 23 of 25 pages « First  <  21 22 23 24 25 >

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