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: Horizontal CSS Menus: Here

SuckerTree Horizontal Menu

Author: Dynamic Drive

SuckerTree Horizontal Menu is a CSS and DOM hybrid menu that's list based and supports multiple levels of sub menus. 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 and positioning behavior to them. You can even have multiple SuckerTree menus on the same page.

See also: SuckerTree Vertical Menu.

Demo:

The two bullet images used:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 09/14/2006

Revision History: None

Usage Terms: Click here

Your Comments (298)

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 29 of 30 pages « First  <  27 28 29 30 >

I like this menu but the sub menu is hidden when you bring the mouse over one of these gaps. Any help is appreciated. I am using Winvisita Ie7
Posted by ben on 08/28, 05:16 PM
Hello,

the menu looks great, but there is one problem, my down-arrow.gif is not showing. I downloaded the gifs, saved them in the site images folder, and still not showing up, help please
Posted by Jennie Nguyen on 09/05, 02:52 PM
hi, its a excellent job. Appreciate.
Posted by mohamed on 09/11, 11:07 PM
This is super, I am having problems with it working in IE the drop down menu comes down but when you move the mouse to click a lower level line it shrinks back up.

I am too confused for this one, does anyone know a fix.

thanks
Posted by alison on 09/13, 04:45 AM
Replace existing code with this:

/*1st sub level menu*/
.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
background:#fff; /* Added this line */
}

...Worked a treat!
Posted by Ben Clynshaw on 09/15, 07:24 PM
Where do you put the hack?
Posted by Angela on 09/25, 01:48 PM
How do you change the height of the menu?
Posted by Angela on 09/25, 02:37 PM
for this website http://www.stscheer.com in the mozilla browser it doesn't show up on top of my content slider that i have below it, why is this menu getting hidden below this item? works fine in IE, any help?!?!
Posted by Andy Scolaro on 10/02, 06:39 AM
A trick for getting the menu to get the menu ontop of the page content is to use Z-Index you then need to put in "position: relative;" to get the z-index to work in IE 6&7:

.suckertreemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
font-size: small;
font-style: normal;
z-index: 50;
position: relative; /* This causes the Z-Index to work correctly in IE6&7 */
}

See www.paritymedical.com/test/ where it is being used in conjunction with teh horizontal menu...
Posted by Dave on 10/02, 07:38 AM
I have this script working but in IE6 it aligns everything centered in a list.

Any ideas would make my day!
Posted by Nick H. on 10/02, 10:04 AM

Comment Pages 29 of 30 pages « First  <  27 28 29 30 >

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