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:
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 1 of 32 pages 1 2 3 > Last »
Stylish AND lightweight... definitely worth the use!
Nice menu. What about a compatibility list on IE,FF,Opera and Safari?
The menu was successfully tested in IE6, Firefox 1.5, Opera 9, and IE7 RC1. Not sure about Safari yet, though appreciate any feedback on that and other browsers.
seems all good in safari
It doesn't work properly in IE6 or 7 for me. If i move my cursor down the submenu, when it gets to bottom it wigs out. Then if i move my cursor back up the list, all the links stay on the hover state.
This is what I see viewing this page in IE(6 & 7)
This is what I see viewing this page in IE(6 & 7)
I agree with "Posted by Miz on 09/17, 01:33 AM". Even i tried to make it run on IE 6 and spend almost a whole day to figure out but it didnt work.
For those having problems, please provide as much info on your system as possible (ie: OS, any other useful info), and whether the issue occurs with the demo you see here as well.
In IE(this works fine in firefox) Each "folder" has a space of a few pixels underneath it if you add 3 or more sub-menus. Is this a problem with the script or stylesheet?
It seems as though the gap is present even in a single sub-menu. The space cosmetically doesn't bother me, but when there is text in the layer underneath, the menu is hidden when you bring the mouse over one of these gaps. I am not very familiar with the css nor the many bugs in ie's css processing, so any help is appreciated. I am using WinXP sp2, and ie 6.0.2900.
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 */
Hopefully this helps someone else.
Commenting is not available in this weblog entry.
/* 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 */
Hopefully this helps someone else.

