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

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 16 of 25 pages « First  <  14 15 16 17 18 >  Last »

Jeff,

I had the same problem with the 2nd level menus disappearing behing the content. So I tried:

z-index: -1 for the content div , & that worked great. Hope it works for you .

SJ
Posted by SJ on 08/27, 06:45 PM
I see from reading the posts on this forum that several people are having problem with MAC - using IE & FF. Was anyone able to fix this? If so, can you please post and help me out?

Sherry
Posted by Sherry on 08/31, 05:05 PM
Help.. I seem to have the first slide out appearing all the time.. when I go to the next few on the menu the 1st one is always visible??
Probably my bad..
Posted by Aasta on 09/02, 02:47 PM
hi, is this code of SuckerTree Vertical Menu (v1.1) will work on IE7?
Posted by ivy on 09/05, 10:53 PM
I copied and pasted the CSS and HTML code along with the image into my website but for some reason it is ignoring the javascript. I am using Microsoft Office SharePoint Designer. It would be very much appreciated if someone could help me with this problem.

Thank you
Posted by Vickie on 09/14, 04:41 PM
Ivy,

Yep the code works fine with IE7

SP
Posted by SP on 09/15, 07:10 AM
I see a lot of people having problems with the sub menus hidden behind a flash object or an image. Any one figure out a fix? If so, please can you post?

Thanks
Sherry
Posted by sherry on 09/15, 01:59 PM
Very good site for the designer and developer.

thnks for make this site.




Thanks,
Dhiraj singh karki.
Posted by Dhiraj on 09/19, 03:07 AM
RE: Flash issues-

I had to go somewhere else to figure this out.
"wmode" for the flash object needs to be set to "opaque". Works fine with most browsers.

Buy [i]HEEEEEY[/i]! Someone needs to fix the Safari thing! Anyone? Please? As mentioned in previous posts, :hover for sub-level items doesn't seem to work.
Posted by Tom on 09/26, 11:54 AM
Hello, how to make submenu have a another background color - now when a changed background in css change evrywhere a wont to onlu submenu another color backcround? thanks
Posted by Peter on 10/01, 06:13 AM

Comment Pages 16 of 25 pages « First  <  14 15 16 17 18 >  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