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 29 of 32 pages « First < 27 28 29 30 31 > Last »
/*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 */
}
...Worked a treat!
.suckertreemenu ul{
margin: 0;
padding: 0;
list-style-type: none;
font-size: small;
font-style: normal;
z-index: 50;
position: relative; /* This causes the Z-Index to work correctly in IE6&7 */
}
See www.paritymedical.com/test/ where it is being used in conjunction with teh horizontal menu...
I need to have several menus on a page. The second menu does not show sub menus.
I simply wrote the second menu under the first in a new div.
Can you help?
Thanks
Bob
.suckertreemenu {
background-image:url(../images/images/grad-navbar.gif);
background-repeat:repeat-x;
height: 20px; /*added 20px of height */
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:small;
font-weight: bold;
Need a simple horizontal menu using images - 3 levels.
Using javascript and using tables.
thanks
here the solutios,
look for .suckertreemenu ul li ul
and replace
.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
list-style-type: none;
}
with this
.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
list-style-type: none;
margin: 0 0 0 -40px;
}
its just adds the margin: 0 0 0 -40px line.
Hope that helps for people who were looking for a solution for the space problem between the submenus.
Comment Pages 29 of 32 pages « First < 27 28 29 30 31 > Last »
Commenting is not available in this weblog entry.







I am too confused for this one, does anyone know a fix.
thanks