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 (247)

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 20 of 25 pages « First  <  18 19 20 21 22 >  Last »

Awesome work!!!!!
Posted by TheJazz on 03/09, 11:08 PM
Thx, it worked very nice in my app.
Posted by alvaro on 03/12, 08:28 AM
the fly out dosnt work . any advise
Posted by lisa on 03/14, 11:37 AM
Chris, on Page 2, figured out why the flyout doesn't work in Firefox (improper <li> termination).. dunno if that's your problem.
Posted by Matt on 03/18, 10:02 AM
This menu does not work well in Mozilla 5.0 (Windows)
Eg. can go from parent to child menu
Posted by Miki on 03/19, 11:12 PM
css on : http://www.kannis.co.uk/style.css

Dear Author .
I implemented your solution which doesnt works on my webspage. it has a conflict problem with the existing css file the links are
css file :http://www.kannis.co.uk/style.css
website : http://www.kannis.co.uk/indextempcopy.html

i want to show action , comedy and thriller under why kannis vertical menu .

waiting for your reply - ash2382@gmail.com
Posted by ash on 03/28, 08:38 PM
I am not the author but
Ignace, I can tell you a lot of people are having problems with IE in Vista. Things just do not show correctly half the time.

Now ash I had a problem with using 2 styles before and I just left 1 as style.css and named the other style2.css and it worked create.
Posted by Veronica Taylor on 04/02, 11:58 AM
If there is a flash next to the menu when the menu is expanded if hides behind the flash. The same happens if there is a javascript scroller next to the menu.
Any way we can get around this problem?
Posted by John on 04/08, 06:47 AM
I tried this in IE 6 and 7, firefox and it works great, but I am having trouble with it working on netscape 7.2....>.<
Posted by Diana on 04/14, 03:12 PM
Hi Chris, u should look at your nested <ul>.

<li>Item 1</li>
<li>Item 2</li>
<li>Folder 1
<ul>
<li>Folder 1.1</li> /*this is wrong for FF*/
<ul>
<li>Sub Item 1.1.1</li>
<li>Sub Item 1.1.2</li>
<li>Sub Item 1.1.3</li>
</ul>

it shud b like this :
<ul>
<li>Parent item
<ul>
<li>sub item 1</li>
<li>sub item 2</li>
<li>sub item 3</li>
</ul>
</li> /*this is what I mean - a closing tag*/
</ul>

closing 'li' must b placed at the right order.
the nested 'ul' must be placed inside 'li'.

u can't close the 'li' and then put your nested 'ul' after closing 'li'.

yeah, I'm facing the same problem ^^.
I hope it useful.
Posted by dennisa on 04/15, 02:34 AM

Comment Pages 20 of 25 pages « First  <  18 19 20 21 22 >  Last »

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Supported BB codes: [b], [i], [u], [em], [strike], [strong], [pre], [code], and [blockquote].

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below ("previewing" post does not require it):


Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library