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

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 24 of 30 pages « First  <  22 23 24 25 26 >  Last »

Hi,

This is probably really simple, but i can't find it!

Everything works fine. When i set it up, the colours of the links are like a dark red type colour which is exactly what i want. However, when i changed the link values, the link colours changed to the regular blue. I can't find anywhere on the CSS to alter the fonts/font colours...
Posted by Greg on 03/10, 05:07 PM
Hi, I have 2 questions.

How do I modify it such that I do not need to set a width for the 1st level menu tabs? I want the width to be dependent on the length of the text that I type into each tab.


How do I make the sub menu horizontal ?
Posted by Jermyn on 03/11, 09:04 AM
It is a nice menu. Like the sub menus. My only problem is i can not get it to use the width that is needed for a link. They all need to be the same size. I fixed it for Firefox by not specifying width and using the padding instead but in IE it dose not work. Any ideas on how to do fix it?
Posted by everything-network on 03/11, 04:11 PM
I have had all the same issues as most of you with IE 7 and the menu dropping out after the 3rd item on the menu.

Well someone earlier posted this fix....

/*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 */
}

This fix has worked great for me. My menu does not drop out anymore!

Hope this works for you guys!
Posted by Rob on 03/19, 10:11 PM
how does one center the menu bar? will the submenus shift also?
Posted by Derek on 03/24, 01:05 PM
Wondered how you fix the first sub-level menu to drop down directly below (aligned with) the top level menu . . . mine is offsetting about 50 pixels to the right. Maybe I'm just not seeing the piece of code that adjusts this??
Posted by Andrea on 04/01, 03:00 PM
It works fine in firefox and the sub menu is gone behind the images in IE.

Anyone have fixed this issue????
Posted by Yespee on 04/06, 11:47 PM
I read all the posts but have not read anything regarding a second menu other than in the description. I've managed the main drop down menu and tried to add a similar style link bar at the base of the page which does not expand. I tried various naming conventions for .suckertreemenu and "var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas"
I require the second menu to be 130px wide rather than the 125px I have with the first.
Posted by John McAdam on 04/07, 12:33 AM
wigs out in IE 7.00.6 running Vista Home Premium. Have not tested on any other browser. Pretty surprised, most everything on DD works. Hope you get it fixed.
Posted by Derrick on 04/07, 02:31 PM
Instead of using the following solution (it did not work for me)
Ok, I managed to fix it myself by using the following for IE compatability:

/* Holly Hack for IE \*/
* html .suckertreemenu ul li { float: left; height: 1%;}
* html .suckertreemenu ul li a { height: 1%;}
* html .suckertreemenu ul li ul li { float: left;}
/* End */

Replace with the following solution. It worked great for me...

*.suckertreemenu ul li { float: left; height: 20px;}
Posted by Sylvain Desforges on 04/08, 01:43 PM

Comment Pages 24 of 30 pages « First  <  22 23 24 25 26 >  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