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 24 of 30 pages « First < 22 23 24 25 26 > Last »
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 ?
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!
Anyone have fixed this issue????
I require the second menu to be 130px wide rather than the 125px I have with the first.
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;}
Comment Pages 24 of 30 pages « First < 22 23 24 25 26 > Last »









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...