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 11 of 32 pages « First  <  9 10 11 12 13 >  Last »

I solved the problem when the menu disappear on IE7 removing the next entry

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

or it's similar

I hope this can help.
Posted by Felipe on 02/03, 12:45 AM
Removing the DOCTYPE does fix the menu as Felipe has said, but it breaks the rest of the formatting in IE 7.

Anybody find a DOCTYPE that works?
Posted by jchalos on 02/05, 09:07 AM
I rather not remove the DOCTYPE . I have found that eliminating the top and bottom padding in .suckertreemenu ul li ul li a:link makes things better, BUT need the padding. I have tried adjusting the line height to create the space needed and that causes the same issue as the padding.

Anyone have any other suggestions?
Posted by Sandy on 02/05, 11:11 AM
Works fine in IE6 and IE7 (all CSS, no tables) but menus just display stuck dropped down in Firefox 2.0.0.1 Maybe Firefox isn't reading the js properly? What is wrong, anyone? (I have spent so much time on all this CSS with divs only and no tables but this menu just defeats me). Please help, thanks.
Posted by Vinnie on 02/07, 03:06 PM
THIS menu really loses it when we use FireFox - when the user does a CTRL- (minus) to reduce the font size. when that happens there is gap between the menu item and the submenu items. Once the mouse hits this 'gap' the sub menu disappears.

any fix?
Posted by Erik on 02/16, 08:43 AM
i would love to know how this work I have no ideal on whats going on please help. I want to fic this in a web page that I have been working on but do not no how
Posted by keyon on 02/19, 02:01 AM
I researched and found resolutions to the following 2 issues, which have been asked about many times on this thread.

Issues:
1) Menus hiding behind other elements when dropped-down

2) Menus would disappear in IE7 unless you navigated the menus slowly.

Resolutions:

1) If your menu drops down over any element that is positioned relatively, the dropped down menu disappears behind that relatively positioned element in IE/6+7 , regardless of what z-index you give the menu.

IN my case, I had a div with a div inside it under the dropdown. Here is the code that works where as before it didn't:

Code that works in IE 7:

#pagecell1{
display:block;
height:auto;
background-color: #ffffff;
width: 99.8%;
border: 1px solid;
}

#leftLinks{
height: auto;
/*position:absolute;*/ took out
/*height: 290px;*/ took out
width:126px;
background-color:#e2e3e3;
}


2) Add a background color to the .suckertreemenu ul li ul{
section of the css:

Code with fix:

/*1st sub level menu*/

.suckertreemenu ul li ul{

left: 0;
background-color: #F3F3F3; /*Disappearing menu fix-BP */
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
}


I am working on figuring out the issue Erik pointed out about the menus not repositioning correctly when you increase the font size in FF or in that case IE. There is a gap created which stops you from scrolling the drop-downs.

Any one have a fix for this?



-Bill
quantuminc1@yahoo.com
billpepitone@winn-dixie.com
Posted by Bill on 02/21, 04:47 PM
Why does this only work on one level it either shows the first "ul li" with opacity and then hides the second level of "ul li" or it doesn't show any opacity at all.

I have added this code:

.suckertreemenu ul li ul li {
filter :Alpha(opacity=90, finishopacity=0, style=0);
-moz-opacity :0.9;
}
Posted by Tommy on 02/22, 10:56 AM
Excuse me, but this </a>


</ul>
</li>
</ul>
</a>
</li>
<li>Item 4</li>

is necessary or is an error? Thanks a lot, wonderful job. Congratulations!!
Posted by http://immenso.splinder.com on 02/22, 05:37 PM
Tommy


.suckertreemenu ul li ul li {
filter :Alpha(opacity=90, finishopacity=0, style=0);
-moz-opacity :0.9;

that code leaves black streak across the screen on ffOX
Posted by Erik on 02/22, 09:36 PM

Comment Pages 11 of 32 pages « First  <  9 10 11 12 13 >  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