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: Vertical CSS Menus: Here

SuckerTree Vertical Menu (v1.1)

Author: Dynamic Drive

Nov 8th, 06: Fixed rendering issue in IE7, plus added support for automatic detection of sub menus width. No more configuring the "left" attributes!

This is a vertical, predominantly CSS based (with a touch of JavaScript) multi-level menu. It supports as many sub levels as you desire, plus multiple Suckertree menus on the same page. The CSS and JavaScript automatically adopts to your HTML code in each case.

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 behavior to them. This differs from Suckerfish menu, which merely uses JavaScript to compensate for IE's shortcomings when it comes to CSS, so the menu is more rigid and requires manual changes to the CSS as the number of levels in your menu changes.

Demo:

The single image:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 11/08/2006

Revision History: Updated Nov 8th, 06' to version 1.1

Usage Terms: Click here

Your Comments (272)

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

I've got the same problem with the horizontal menu.
Here is the solution:

.suckertreemenu ul li ul li{
display:table-row;
float: none;
}
Posted by Robbie on 01/30, 01:58 PM
Thanks, Robbie. I haven't tried your suggestion out yet but will do. Looking at the code you have provided suggests it is for a horizontal menu as you were having the problem with. Would this mean that i would change the code to the following for a vertical menu.

.suckertreemenu ul li ul li{
display:table-row;
float: none;
}

Change to:

.suckertreemenu ul li ul li{
display:table-column;
float: none;
}

your response is much appreciated.

Many Thanks

ps. these codes are currently implented in an external .css file.
Posted by Farhad Miah on 01/31, 05:24 AM
Hi, Robbie

In regards to the above suggestion you've made. I have just tried to implent you solution but unfortunately the problem remains. Unfortunately i do not have a website to show you the problem. Like I've mentioned earlier the problem only lies when you put the CSS in an external file.

ot sure if anyone else had this problem. Please do let me know.

Many thanks
Farhad
Posted by Farhad on 01/31, 07:54 AM
How do I get the pop-up sub menus to appear over the top of the rest of the page content?
Posted by Eliot Walker on 02/05, 07:08 AM
Does anyone have trouble with this menu in Netscape? If so, is there a fix? Thanks.
Posted by Kevin on 02/05, 11:57 AM
i have already used your horizontal suckertree menu and i like it very much...
as for this vertical menu...how can i make the submenu appear below the main menu instead of sliding out to the side of the main menu?the event is like this->when i cliked the main menu..the submenu appear below it and stay plus the other main menu below the submenu is still visible...i hope you can understand what i mean...:-)
Thanks.
Posted by eyezal on 02/05, 08:50 PM
is there a way to prevent the 'flyout' menus being displayed until the user has clicked on the menu item?

so rather than as you hover over the menu's the 'flyouts' are displayed, they are not visible until there is an .onclick command rather than an .onmouseover

i have tried the .onclick but have yet to find a way of clearing the 'flyouts' when you move to another menu item, as they are either blank (using .onmouseout) or if you remove this filter then the flyouts overlap each other.

Please assist.
Posted by mike on 02/15, 08:38 AM
Great stuff. It works well on one page. But I put it in a frameset (left_frame); What can I do, that this tree will "flow" over die frame border into the main_frame, that every submenue is visible?
Thanks a lot.
Anna
Posted by Anna on 02/16, 11:53 AM
It's really usefull for people who are new to webdesigninig like me

..GREAT........

............Bobby
Posted by Bobby on 02/19, 01:08 PM
Hi there,

I need to use 2 menus on the same page. For some reason it only works in IE and not FF (the flyout menus don't work and links will not open in a new window).

Any thoughts??
Thanks!!
Jennie
Posted by Jennie on 02/24, 04:40 PM

Comment Pages 9 of 28 pages « First  <  7 8 9 10 11 >  Last »

Commenting is not available in this weblog entry.
Copyright 2006-2011 Dynamic Drive Read our Usage Terms before using any of the CSS codes.