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 8 of 32 pages « First  <  6 7 8 9 10 >  Last »

:/ blah...
it really sux this dissapearing.
if the java script has a delay to hide the menu, I think the problem should be solved, but I`m not good at java scripting.
Posted by Jor on 12/09, 02:49 PM
So removing the top/bottom margin helps the problem, it doesn't fix it, as you still need to move slowly over each item and you lose the ability to bad the list items.

If anyone finds an actual fix, please post it here. In the meantime, I added these 4 lines to ".suckertreemenu ul li ul li a{" to take care of ie7 users using the aforementioned methods...

*padding-top: 0px;
*padding-bottom: 0px;
_padding-top: 5px;
_padding-bottom: 5px;

This allows the menu to look the same for all users other than IE7.
Posted by jchalos on 12/11, 04:30 PM
I found a DHTML menu maker that did a great job, but the menu alone was 25k and hundreds of lines :-(

Fast, tiny. This is a great menu!
Thank you very much!
Posted by David on 12/11, 05:11 PM
finally went and found another drop down that works much much much better. It's a modified version of the original suckerfish menus.

http://www.htmldog.com/articles/suckerfish/dropdowns/

I think the javascript works correctly in this one because it works in every browser I have tried with unlimited margins,padding and borders. Good luck to all.
Posted by Kevin on 12/11, 11:06 PM
used this menu in website.. changed some code so as to show image instead of text.. it works perfect when offline.. but once online, it loads differently.. i mean instead of horizontal it sometimes loads in vertical lines or sometime in two lines.. but once refreshed it gets back to horizontal form..

please is thr anyway tweak to solve this issue..
website is www.drishtee.com
Posted by KP on 12/14, 02:52 AM
sucker tree horizontal sub menu is not dropping down on me.

I visited some site listed on this forum and it seems that javascript and css is being used. I rather not use Javascript if I can help. Can someone please help.
Dwaiba@yahoo.com

I would really appreciate it.
Posted by Daniel on 12/19, 03:29 AM
I found a few problems using the suckermenu above a inner div displaing form contents...

When droped, the menu stay beneath some objects (like select inputs, applet charts,...)...
I tried to ad the style:z-index to the objects to make sure they'll stay under the menu, but seems not work..
Any idea how to guarantee the drop down will always be ontop other elements?
Posted by Marcelo on 12/20, 12:36 PM
it works fine for me on my site and the demo here and i am using internet explore but not sure which version it is but it works just fine.
Posted by Rick on 12/23, 04:13 AM
the drop down menu will not show on IE 6.0.2900

as the adaption to my menu didn;t work I just tried the exact example of yours.

I tried other sub menus on all have JS script and my guess that there lies the problem
anyone can help
Posted by Shoshannah on 12/24, 01:33 PM
Works great on AppleWebKit (Nokia E61 - Symbian 9)
Thanks a lot for sharing the code
ciao
Posted by carmine on 12/29, 06:46 PM

Comment Pages 8 of 32 pages « First  <  6 7 8 9 10 >  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