5cc3 Dynamic Drive CSS Library- SuckerTree Vertical Menu (v1.1)
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 26 of 28 pages « First  <  24 25 26 27 28 >

the menu works perfect with the modifications i had to with it. But i want to keep the main menu hightlighted when i go into a the sub menu. This only happens in IE. But in FF the the main menu changes color when i hover over to the sub menu. Is there anyway to do fix that.
Posted by Eddy on 12/06, 09:35 PM
i implement this code perfectly working thans
Posted by rajaash on 12/10, 01:40 AM
Is there a way to make suckertree vertical menu behave like a toggle menu or accordion menu. Have the submenus drop down vertically instead of flyout to the right??? My knowledge of css, php and html is very limited.
Posted by Karen on 12/18, 05:10 PM
Why is that when I copy your code into a blank sheet, I get circles next the items. I can't figure out where that is coming from. I have not altered the code and I plopped it into a completely blank page. Please help.
Posted by nina on 01/21, 01:46 PM
Could not display the submenus, though i copied as it is.

What is "px" in javascript? How its been initialized..
Posted by Ajay on 01/27, 01:52 AM
Not working when I use external JS, CSS files.

Any work around for this?

And Cant catch the submenus, its one step down the menu...How to fix this ? Thanks for the tutorial
Posted by Ajay on 01/27, 02:48 AM
Can someone advise how to get a form with select option or just a select option working in IE when it's at Folder 2.1.

When you select a value from the drop down the menus disappear. This works in FF!

Thanks
Posted by Craig on 01/28, 05:08 AM
Is there a way when the sub menu goes beyond the bottom of the browser you can make go drop up instead?
Posted by Greta on 01/29, 11:52 AM
Big thanks for script.
Posted by beba on 02/04, 03:19 AM
hi ...

why submenu the left open ...?
Posted by Alireza on 02/05, 05:43 AM

Comment Pages 26 of 28 pages « First  <  24 25 26 27 28 >

Copyright 2006-2011 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
0