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

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 32 pages « First  <  27 28 29 30 31 >  Last »

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
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
Thanks for as very functional and useful menu.
I need to have several menus on a page. The second menu does not show sub menus.
I simply wrote the second menu under the first in a new div.
Can you help?
Thanks
Bob
Posted by Robert Netherton on 10/05, 11:37 AM
My horizontal menu is jumping all over the place in FF. If anyone has any ideas on how to fix it, I'd sure appreciate it. www.lighthousetrailsresearch.com. Thank you.
Posted by Deborah Dombrowski on 10/05, 07:31 PM
I have added the height property in .suckertreemenu which fixed the gap for me in IE7.

.suckertreemenu {
background-image:url(../images/images/grad-navbar.gif);
background-repeat:repeat-x;
height: 20px; /*added 20px of height */
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:small;
font-weight: bold;
Posted by Brian on 10/26, 07:28 PM
Help!

Need a simple horizontal menu using images - 3 levels.
Using javascript and using tables.

thanks
Posted by raghu on 11/15, 07:11 PM
suckertreemenu gap problem...
here the solutios,

look for .suckertreemenu ul li ul

and replace
.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
list-style-type: none;
}

with this

.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
list-style-type: none;
margin: 0 0 0 -40px;
}


its just adds the margin: 0 0 0 -40px line.

Hope that helps for people who were looking for a solution for the space problem between the submenus.
Posted by udara on 01/11, 12:46 AM

Comment Pages 29 of 32 pages « First  <  27 28 29 30 31 >  Last »

Commenting is not available in this weblog entry.
Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library